import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const WalletOverview = ({ balance, buttons, className, icon, loading }) => { return (
{loading ? null : icon} {balance}
{buttons}
); }; WalletOverview.propTypes = { balance: PropTypes.element.isRequired, buttons: PropTypes.element.isRequired, className: PropTypes.string, icon: PropTypes.element.isRequired, loading: PropTypes.boolean, }; WalletOverview.defaultProps = { className: undefined, }; export default WalletOverview;