23 lines
542 B
TypeScript
23 lines
542 B
TypeScript
// Copyright 2017-2024 @polkadot/apps-routing authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { Route, TFunction } from './types.js';
|
|
|
|
import Component, { useCounter } from '@polkadot/app-treasury';
|
|
|
|
export default function create (t: TFunction): Route {
|
|
return {
|
|
Component,
|
|
display: {
|
|
needsApi: [
|
|
'tx.treasury.proposeSpend'
|
|
]
|
|
},
|
|
group: 'governance',
|
|
icon: 'gem',
|
|
name: 'treasury',
|
|
text: t('nav.treasury', 'Treasury', { ns: 'apps-routing' }),
|
|
useCounter
|
|
};
|
|
}
|