joy-members.ts 429 B

123456789101112131415
  1. import { Route } from './types';
  2. import Members from '@polkadot/joy-members/index';
  3. export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
  4. return {
  5. Component: Members,
  6. display: {
  7. needsApi: ['query.members.nextMemberId']
  8. },
  9. icon: 'users',
  10. name: 'members',
  11. text: t<string>('nav.membership', 'Membership', { ns: 'apps-routing' })
  12. };
  13. }