transfer.ts 749 B

123456789101112131415161718192021222324
  1. // Copyright 2017-2020 @polkadot/apps-routing authors & contributors
  2. // This software may be modified and distributed under the terms
  3. // of the Apache-2.0 license. See the LICENSE file for details.
  4. import { Route } from './types';
  5. import TransferModal from '@polkadot/app-accounts/Accounts/modals/Transfer';
  6. export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
  7. return {
  8. Component: TransferModal,
  9. Modal: TransferModal,
  10. display: {
  11. isHidden: false,
  12. needsAccounts: true,
  13. needsApi: [
  14. 'tx.balances.transfer'
  15. ]
  16. },
  17. icon: 'paper-plane',
  18. name: 'transfer',
  19. text: t<string>('nav.transfer', 'Transfer', { ns: 'apps-routing' })
  20. };
  21. }