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("helpPage");
  return createPageMetadata({ title: t("title"), description: t("lead"), path: "/help" });
}

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