mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
36 lines
906 B
TypeScript
36 lines
906 B
TypeScript
'use client';
|
|
|
|
import WalletModalButton, {
|
|
WalletModalButtonProps,
|
|
} from '@session/wallet/components/WalletModalButton';
|
|
import { useTranslations } from 'next-intl';
|
|
|
|
export function WalletModalButtonWithLocales({
|
|
labels,
|
|
ariaLabels,
|
|
fallbackName,
|
|
...props
|
|
}: Partial<WalletModalButtonProps>) {
|
|
const dictionary = useTranslations('wallet.modalButton');
|
|
return (
|
|
<WalletModalButton
|
|
labels={
|
|
labels ?? {
|
|
disconnected: dictionary('connect'),
|
|
connected: dictionary('connected'),
|
|
connecting: dictionary('connecting'),
|
|
reconnecting: dictionary('connecting'),
|
|
}
|
|
}
|
|
ariaLabels={
|
|
ariaLabels ?? {
|
|
connected: dictionary('ariaConnected'),
|
|
disconnected: dictionary('ariaDisconnected'),
|
|
}
|
|
}
|
|
fallbackName={fallbackName ?? dictionary('fallbackName')}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|