import type { Metadata } from "next"; import { getLanguageAlternates, toAbsoluteUrl } from "@/lib/seo"; import SubpageShell from "@/app/_ui/SubpageShell"; import LegalNoticeClient from "@/app/_ui/LegalNoticeClient"; export async function generateMetadata({ params, }: { params: Promise<{ locale: string }>; }): Promise { const { locale } = await params; const languages = getLanguageAlternates({ pathWithoutLocale: "legal-notice" }); return { title: locale === "de" ? "Impressum – Dennis Konkol" : "Legal notice – Dennis Konkol", alternates: { canonical: toAbsoluteUrl(`/${locale}/legal-notice`), languages, }, }; } export default async function Page({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params; return ( ); }