import { HomeworkAssignmentForm } from "@/modules/homework/components/homework-assignment-form" import { getExams } from "@/modules/exams/data-access" import { getTeacherClasses } from "@/modules/classes/data-access" import { EmptyState } from "@/shared/components/ui/empty-state" import { FileQuestion } from "lucide-react" export const dynamic = "force-dynamic" export default async function CreateHomeworkAssignmentPage() { const [exams, classes] = await Promise.all([getExams({}), getTeacherClasses()]) const options = exams.map((e) => ({ id: e.id, title: e.title })) return (

Create Assignment

Dispatch homework from an existing exam.

{options.length === 0 ? ( ) : classes.length === 0 ? ( ) : ( )}
) }