dashboard.ts 588 B

12345678910111213141516171819
  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 Component from '@polkadot/app-dashboard';
  6. export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
  7. return {
  8. Component,
  9. display: {
  10. isHidden: true
  11. },
  12. icon: 'th',
  13. name: 'dashboard',
  14. text: t<string>('nav.dashboard', 'Dashboard', { ns: 'apps-routing' })
  15. };
  16. }