import { notFound } from "next/navigation";
import { LegalLayout } from "@/components/LegalLayout";
import { legalPages } from "@/lib/content";

export default function LegalPage({ params }: { params: { slug: string } }) {
  const page = legalPages.find(([slug]) => slug === params.slug);
  if (!page) notFound();
  return <LegalLayout title={page[1]} content={page[2]} />;
}
