mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
28 lines
724 B
TypeScript
28 lines
724 B
TypeScript
import { SpecialDataTestId } from '@/testing/data-test-ids';
|
|
import { Banner } from '@session/ui/components/Banner';
|
|
import { getTranslations } from 'next-intl/server';
|
|
import Link from 'next/link';
|
|
|
|
export default async function TestnetBanner() {
|
|
const dict = await getTranslations('chainBanner');
|
|
|
|
return (
|
|
<Banner>
|
|
<span>
|
|
{dict.rich('testnet', {
|
|
link: (chunks) => (
|
|
<Link
|
|
target="_blank"
|
|
data-testid={SpecialDataTestId.Mainnet_Link}
|
|
href="https://stake.getsession.org/"
|
|
className="font-medium underline"
|
|
>
|
|
{chunks}
|
|
</Link>
|
|
),
|
|
})}
|
|
</span>
|
|
</Banner>
|
|
);
|
|
}
|