1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui/components/app/wallet-overview/wallet-overview.js

29 lines
697 B
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const WalletOverview = ({ balance, buttons, className, icon }) => {
return (
<div className={classnames('wallet-overview', className)}>
<div className="wallet-overview__balance">
2020-11-03 00:41:28 +01:00
{icon}
{balance}
</div>
2020-11-03 00:41:28 +01:00
<div className="wallet-overview__buttons">{buttons}</div>
</div>
);
};
WalletOverview.propTypes = {
balance: PropTypes.element.isRequired,
buttons: PropTypes.element.isRequired,
className: PropTypes.string,
icon: PropTypes.element.isRequired,
};
WalletOverview.defaultProps = {
className: undefined,
};
export default WalletOverview;