settings.ts 592 B

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