import type { JSX } from "react" import Link from "next/link" import { notFound } from "next/navigation" import { getHomeworkAssignmentAnalytics } from "@/modules/homework/data-access" import { HomeworkAssignmentExamContentCard } from "@/modules/homework/components/homework-assignment-exam-content-card" import { HomeworkAssignmentQuestionErrorOverviewCard } from "@/modules/homework/components/homework-assignment-question-error-overview-card" import { Badge } from "@/shared/components/ui/badge" import { Button } from "@/shared/components/ui/button" import { formatDate } from "@/shared/lib/utils" import { ArrowLeft, Users, Calendar, BarChart3, CheckCircle2 } from "lucide-react" export const dynamic = "force-dynamic" export default async function HomeworkAssignmentDetailPage({ params }: { params: Promise<{ id: string }> }): Promise { const { id } = await params const analytics = await getHomeworkAssignmentAnalytics(id) if (!analytics) return notFound() const { assignment, questions, gradedSampleCount } = analytics return (
{/* Header */}

{assignment.title}

{assignment.status}

{assignment.description || "No description provided."}

{/* Quick Stats Row */}
{/* Analytics Section */}

Performance Analytics

{/* Content Section */}

Assignment Content

) }