import type { Metadata } from "next";
import { getLanguageAlternates, toAbsoluteUrl } from "@/lib/seo";
export { default } from "../../privacy-policy/page";

export async function generateMetadata({
  params,
}: {
  params: Promise<{ locale: string }>;
}): Promise<Metadata> {
  const { locale } = await params;
  const languages = getLanguageAlternates({ pathWithoutLocale: "privacy-policy" });
  return {
    alternates: {
      canonical: toAbsoluteUrl(`/${locale}/privacy-policy`),
      languages,
    },
  };
}

