techcomm.ts 703 B

1234567891011121314151617181920212223
  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-tech-comm';
  6. export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
  7. return {
  8. Component,
  9. display: {
  10. needsAccounts: true,
  11. needsApi: [
  12. 'query.technicalCommittee.members'
  13. ]
  14. },
  15. icon: 'microchip',
  16. name: 'techcomm',
  17. text: t<string>('nav.tech-comm', 'Tech. comm.', { ns: 'apps-routing' }),
  18. useCounter
  19. };
  20. }