/* @flow */ 'use strict'; import React from 'react'; import { formatAmount } from '../../utils/formatUtils'; const AccountSelection = (props): any => { const { accounts, coinInfo, complete } = props.modal; const accountsCollection = accounts.map((a, index) => { let accountStatus: string = a.fresh ? 'Fresh account' : formatAmount(a.balance, coinInfo); // Loading... return (
) }); const header: string = complete ? `Select ${ coinInfo.label } account` : `Loading ${ coinInfo.label } accounts...`; return (

{ header }

Accounts
Legacy Accounts
{ accountsCollection }
); } export default AccountSelection;