mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
27 lines
804 B
TypeScript
27 lines
804 B
TypeScript
import WalletAddTokenButton, {
|
|
WalletAddTokenButtonProps,
|
|
} from '@session/wallet/components/WalletAddTokenButton';
|
|
import { useTranslations } from 'next-intl';
|
|
|
|
export function WalletAddTokenWithLocales(
|
|
props: Omit<WalletAddTokenButtonProps, 'labels' | 'ariaLabels' | 'errors'>
|
|
) {
|
|
const dictionary = useTranslations('wallet.watchTokenButton');
|
|
return (
|
|
<WalletAddTokenButton
|
|
labels={{
|
|
addToken: dictionary('importText'),
|
|
changeNetwork: dictionary('changeNetwork'),
|
|
pending: dictionary('pending'),
|
|
}}
|
|
ariaLabels={{
|
|
addToken: dictionary('ariaImport'),
|
|
changeNetwork: dictionary('ariaChangeNetwork'),
|
|
pending: dictionary('ariaPending'),
|
|
}}
|
|
errors={{ fail: dictionary('failError') }}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|