import * as _ from 'lodash'; import * as React from 'react'; import { ERC20Asset } from '../types'; import { Button, Container } from './ui'; export interface ERC20TokenSelectorProps { tokens: ERC20Asset[]; onTokenSelect: (token: ERC20Asset) => void; } export const ERC20TokenSelector: React.StatelessComponent = ({ tokens, onTokenSelect }) => ( {_.map(tokens, token => )} ); interface TokenSelectorRowProps { token: ERC20Asset; onClick: (token: ERC20Asset) => void; } class TokenSelectorRow extends React.Component { public render(): React.ReactNode { const { token } = this.props; return ( ); } private readonly _handleClick = (): void => { this.props.onClick(this.props.token); }; }