import type { JSX } from "react"
import { getTranslations } from "next-intl/server"
import { ExamForm } from "@/modules/exams/components/exam-form"

export const dynamic = "force-dynamic"

export default async function CreateExamPage(): Promise<JSX.Element> {
  const t = await getTranslations("examHomework")
  return (
    <div className="mx-auto w-full max-w-[1200px] space-y-6 p-6">
      <div>
        <h1 className="text-2xl font-bold tracking-tight">{t("exam.form.createTitle")}</h1>
        <p className="text-muted-foreground">{t("exam.form.createDescription")}</p>
      </div>
      <ExamForm />
    </div>
  )
}
