2023-05-03 10:20:25 +02:00

22 lines
418 B
TypeScript

'use client';
import LocaleSwitcher from 'components/ui/locale-switcher/locale-switcher';
import { useTranslations } from 'next-intl';
interface PageProps {
params: {
locale: string
}
}
export default function Index({params: {locale}} : PageProps) {
const t = useTranslations('Index');
return (
<div>
<h1>{t('title')}</h1>
<LocaleSwitcher currentLocale={locale} />
</div>
)
}