import { getTranslations, setRequestLocale } from "next-intl/server";

export default async function TermsPage({
  params,
}: {
  params: Promise<{ locale: string }>;
}) {
  const { locale } = await params;
  setRequestLocale(locale);
  const t = await getTranslations("terms");
  return (
    <article className="card max-w-3xl space-y-4 p-8">
      <h1 className="page-title">{t("title")}</h1>
      <p className="leading-8 text-muted">{t("body")}</p>
    </article>
  );
}
