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.
29 lines
697 B
29 lines
697 B
4 years ago
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import classnames from 'classnames';
|
||
5 years ago
|
|
||
5 years ago
|
const WalletOverview = ({ balance, buttons, className, icon }) => {
|
||
5 years ago
|
return (
|
||
5 years ago
|
<div className={classnames('wallet-overview', className)}>
|
||
5 years ago
|
<div className="wallet-overview__balance">
|
||
4 years ago
|
{icon}
|
||
|
{balance}
|
||
5 years ago
|
</div>
|
||
4 years ago
|
<div className="wallet-overview__buttons">{buttons}</div>
|
||
5 years ago
|
</div>
|
||
4 years ago
|
);
|
||
|
};
|
||
5 years ago
|
|
||
|
WalletOverview.propTypes = {
|
||
|
balance: PropTypes.element.isRequired,
|
||
|
buttons: PropTypes.element.isRequired,
|
||
5 years ago
|
className: PropTypes.string,
|
||
5 years ago
|
icon: PropTypes.element.isRequired,
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
5 years ago
|
WalletOverview.defaultProps = {
|
||
|
className: undefined,
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
4 years ago
|
export default WalletOverview;
|