mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
22 lines
418 B
TypeScript
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>
|
|
)
|
|
} |