ghost-portal/packages/apps-routing/src/council.ts

28 lines
674 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { Route } from './types';
import Component, { useCounter } from '@polkadot/app-council';
export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
'query.council.prime',
[
'query.electionsPhragmen.candidates',
'query.elections.candidates'
]
]
},
group: 'governance',
icon: 'building',
name: 'council',
text: t('nav.council', 'Council', { ns: 'apps-routing' }),
useCounter
};
}