/* @flow */ 'use strict'; import React from 'react'; import { Link, NavLink } from 'react-router-dom'; import type { Props } from './index'; import type { TrezorDevice } from '~/flowtype'; const CoinSelection = (props: Props): React$Element => { const { location } = props.router; const { config } = props.localStorage; const selectedDevice = props.connect.selectedDevice; let baseUrl: string = ''; if (selectedDevice) { baseUrl = `/device/${selectedDevice.id}`; if (selectedDevice.instance) { baseUrl += `:${selectedDevice.instance}`; } } const walletCoins = config.coins.map(item => { const url = `${ baseUrl }/network/${ item.network }/account/0`; const className = `coin ${ item.network }` return ( { item.name } ) }) return (
{ walletCoins }
Other coins (You will be redirected)
Bitcoin Litecoin Bitcoin Cash Bitcoin Gold Dash Zcash
); } export default CoinSelection;