18 lines
584 B
TypeScript
18 lines
584 B
TypeScript
import { setRequestLocale, getTranslations } from 'next-intl/server';
|
|
import { ContactContent } from '@/components/contact-content';
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
|
|
const { locale } = await params;
|
|
const t = await getTranslations({ locale, namespace: 'nav' });
|
|
return {
|
|
title: `${t('contact')} - Kordon Apart`,
|
|
};
|
|
}
|
|
|
|
export default async function ContactPage({ params }: { params: Promise<{ locale: string }> }) {
|
|
const { locale } = await params;
|
|
setRequestLocale(locale);
|
|
|
|
return <ContactContent />;
|
|
}
|