ghost-portal/packages/apps-routing/src/settings.ts
Jaco Greeff ede19891e1
Swap Icon to FAIcon wrapper (#3046)
* Swap Icon to FAIcon wrapper

* Small tweaks
2020-06-25 11:00:36 +02:00

19 lines
601 B
TypeScript

// Copyright 2017-2020 @polkadot/apps-routing authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Route } from './types';
import Settings, { useCounter } from '@polkadot/app-settings';
export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
return {
Component: Settings,
display: {},
icon: 'cogs',
name: 'settings',
text: t<string>('nav.settings', 'Settings', { ns: 'apps-routing' }),
useCounter
};
}