import { getGrades, getStaffOptions } from "@/modules/school/data-access" import { getSubjectOptions } from "@/modules/elective/data-access" import { ElectiveCourseForm } from "@/modules/elective/components/elective-course-form" export const dynamic = "force-dynamic" export default async function CreateElectiveCoursePage() { const [subjects, grades, teachers] = await Promise.all([ getSubjectOptions(), getGrades(), getStaffOptions(), ]) return (

New Elective Course

Create a new elective course.

({ id: g.id, name: g.name }))} teachers={teachers.map((t) => ({ id: t.id, name: t.name }))} backHref="/admin/elective" />
) }