You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
698 B
31 lines
698 B
4 years ago
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
5 years ago
|
|
||
4 years ago
|
import AssetBreadcrumb from './asset-breadcrumb';
|
||
5 years ago
|
|
||
|
const AssetNavigation = ({ accountName, assetName, onBack, optionsButton }) => {
|
||
|
return (
|
||
|
<div className="asset-navigation">
|
||
4 years ago
|
<AssetBreadcrumb
|
||
|
accountName={accountName}
|
||
|
assetName={assetName}
|
||
|
onBack={onBack}
|
||
|
/>
|
||
|
{optionsButton}
|
||
5 years ago
|
</div>
|
||
4 years ago
|
);
|
||
|
};
|
||
5 years ago
|
|
||
|
AssetNavigation.propTypes = {
|
||
|
accountName: PropTypes.string.isRequired,
|
||
|
assetName: PropTypes.string.isRequired,
|
||
|
onBack: PropTypes.func.isRequired,
|
||
|
optionsButton: PropTypes.element,
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
|
AssetNavigation.defaultProps = {
|
||
|
optionsButton: undefined,
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
4 years ago
|
export default AssetNavigation;
|