20 lines
655 B
TypeScript
20 lines
655 B
TypeScript
import { getDictionary } from "@/get-dictionary";
|
|
import type { Locale } from "@/i18n-config";
|
|
import FAQClient from "@/components/FAQClient";
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ lang: Locale }> }) {
|
|
const { lang } = await params;
|
|
const dict = await getDictionary(lang);
|
|
return {
|
|
title: `${dict.faq.title} | ${dict.nav.brandName}${dict.nav.brandSub}`,
|
|
description: dict.faq.desc,
|
|
};
|
|
}
|
|
|
|
export default async function FAQPage({ params }: { params: Promise<{ lang: Locale }> }) {
|
|
const { lang } = await params;
|
|
const dict = await getDictionary(lang);
|
|
|
|
return <FAQClient lang={lang} dict={dict} />;
|
|
}
|