23 lines
674 B
TypeScript
23 lines
674 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.meta.faq.title,
|
|
description: dict.meta.faq.desc,
|
|
alternates: {
|
|
canonical: `/${lang}/faq`,
|
|
},
|
|
};
|
|
}
|
|
|
|
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} />;
|
|
}
|