memo.ts 597 B

1234567891011121314151617181920
  1. import { Route } from './types';
  2. import { MemoModal } from '@polkadot/joy-utils/react/components/Memo';
  3. export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
  4. return {
  5. // Assert to get around the uncecessary requirement for RouteProps
  6. Component: MemoModal as React.ComponentType<any>,
  7. Modal: MemoModal,
  8. display: {
  9. isHidden: false,
  10. needsApi: [
  11. 'tx.memo.updateMemo'
  12. ]
  13. },
  14. icon: 'sticky-note',
  15. name: 'memo',
  16. text: t<string>('nav.memo', 'My memo', { ns: 'apps-routing' })
  17. };
  18. }