ghost-portal/packages/page-staking/src/Actions/destOptions.tsx
Jaco 7d24f50c38
Bump deps (incl. TS) (#8931)
* Bump deps (incl. TS)

* Adjust ESM packages for Jest

* Yet more Jest hacks

* Make horrible jest config slightly prettier

* Unbump electron

* Fix external package deps
2023-02-03 15:01:45 +02:00

22 lines
704 B
TypeScript

// Copyright 2017-2023 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
interface Option {
text: string;
value: string;
}
export function createDestPrev (t: TFunction): Option[] {
return [
{ text: t<string>('Stash account (increase the amount at stake)'), value: 'Staked' },
{ text: t<string>('Stash account (do not increase the amount at stake)'), value: 'Stash' },
{ text: t<string>('Controller account'), value: 'Controller' }
];
}
export function createDestCurr (t: TFunction): Option[] {
return createDestPrev(t).concat({ text: t<string>('Specified payment account'), value: 'Account' });
}