/**
 * Figma: "Content page Template" (19003:23305)
 * https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=19003-23305
 */
import type { Metadata } from "next";
import messages from "../../../messages/en/index";
import { legalPathForSlug } from "../../../lib/legalSyntheticPost";
import LegalDocumentPage, {
  legalPageMetadata,
} from "../_components/LegalDocumentPage";

const SLUG = "terms" as const;
const PATH = legalPathForSlug(SLUG);

export function generateMetadata(): Metadata {
  return legalPageMetadata(messages.metadata.terms, messages.pages.terms);
}

export default function TermsPage() {
  return (
    <LegalDocumentPage
      slug={SLUG}
      path={PATH}
      page={messages.pages.terms}
    />
  );
}
