// Copyright 2019 @polkadot/extension-ui authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AccountsFromCtx } from '../../components/types'; import React from 'react'; import { Button, Header, Tip, withAccounts } from '../../components'; import Account from './Account'; interface Props { accounts: AccountsFromCtx; } function Accounts ({ accounts }: Props): React.ReactElement { return (
{ (accounts.length === 0) ? You currently don't have any accounts. Either create a new account or if you have an existing account you wish to use, import it with the seed phrase : accounts.map(({ address }): React.ReactNode => ( )) }
); } export default withAccounts(Accounts);