first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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 />;
|
||||
}
|
||||
Reference in New Issue
Block a user