import type { Metadata } from "next";
import { getTranslations } from "next-intl/server";

import { CmsRoute } from "@/components/content/CmsRoute";
import { createPageMetadata } from "@/lib/metadata";

export const revalidate = 300;

export async function generateMetadata(): Promise<Metadata> {
  const t = await getTranslations("privacyPage");
  return createPageMetadata({ title: t("title"), description: t("lead"), path: "/privacy" });
}

export default function PrivacyPage() {
  return (
    <main className="min-h-screen bg-white">
      <CmsRoute slug="privacy" ns="privacyPage" />
    </main>
  );
}
