import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import AccountListItem from '../send/account-list-item/account-list-item.component' export default class AccountDropdownMini extends PureComponent { static propTypes = { accounts: PropTypes.array.isRequired, closeDropdown: PropTypes.func, disabled: PropTypes.bool, dropdownOpen: PropTypes.bool, onSelect: PropTypes.func, openDropdown: PropTypes.func, selectedAccount: PropTypes.object.isRequired, } static defaultProps = { closeDropdown: () => {}, disabled: false, dropdownOpen: false, onSelect: () => {}, openDropdown: () => {}, } getListItemIcon (currentAccount, selectedAccount) { return currentAccount.address === selectedAccount.address && ( ) } renderDropdown () { const { accounts, selectedAccount, closeDropdown, onSelect } = this.props return (