ghost-portal/packages/apps-routing/src/files.ts
Jaco 98cb78c1aa
Enable files module (#6996)
* Enable files module

* linting
2022-02-17 07:57:00 +00:00

22 lines
518 B
TypeScript

// Copyright 2017-2022 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { Route } from './types';
import Component from '@polkadot/app-files';
export default function create (t: TFunction): Route {
return {
Component,
display: {
needsAccounts: true,
needsApi: []
},
group: 'developer',
icon: 'file',
name: 'files',
text: t('nav.files', 'Files (IPFS)', { ns: 'apps-routing' })
};
}