ghost-portal/packages/apps-routing/src/parachains.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

22 lines
644 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 Parachains from '@polkadot/app-parachains';
export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
return {
Component: Parachains,
display: {
needsApi: [
'query.parachains.code'
]
},
icon: 'link',
name: 'parachains',
text: t<string>('nav.parachains', 'Parachains', { ns: 'apps-routing' })
};
}