ghost-portal/packages/apps-routing/src/teleport.ts
2024-01-08 15:06:30 +02:00

33 lines
862 B
TypeScript

// Copyright 2017-2024 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Route, TFunction } from './types.js';
import Modal from '@polkadot/app-parachains/Teleport';
export default function create (t: TFunction): Route {
return {
Component: Modal,
Modal,
display: {
isHidden: false,
needsAccounts: true,
needsApi: [
[
'tx.xcm.teleportAssets',
'tx.xcmPallet.teleportAssets',
'tx.polkadotXcm.teleportAssets',
'tx.xcm.limitedTeleportAssets',
'tx.xcmPallet.limitedTeleportAssets',
'tx.polkadotXcm.limitedTeleportAssets'
]
],
needsTeleport: true
},
group: 'accounts',
icon: 'share-square',
name: 'teleport',
text: t('nav.teleport', 'Teleport', { ns: 'apps-routing' })
};
}