| 1 | import { DocArticle } from "../_components/doc-article"; |
| 2 | import { getDocsAuth } from "@/lib/i18n/dictionaries"; |
| 3 | import { buildPageMetadata } from "@/lib/page-meta"; |
| 4 | |
| 5 | export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { |
| 6 | const { locale } = await params; |
| 7 | const t = getDocsAuth(locale); |
| 8 | return buildPageMetadata({ |
| 9 | path: "/docs/auth", |
| 10 | locale, |
| 11 | title: t.metaTitle, |
| 12 | description: t.metaDescription, |
| 13 | }); |
| 14 | } |
| 15 | |
| 16 | export default async function AuthPage({ params }: { params: Promise<{ locale: string }> }) { |
| 17 | const { locale } = await params; |
| 18 | return <DocArticle t={getDocsAuth(locale)} locale={locale} />; |
| 19 | } |
| 20 |