import { getAuthContext } from "@/shared/lib/auth-guard" import { getAvailableCoursesForStudent, getStudentSelections } from "@/modules/elective/data-access-selections" import { StudentSelectionView } from "@/modules/elective/components/student-selection-view" export const dynamic = "force-dynamic" export default async function StudentElectivePage() { const ctx = await getAuthContext() const studentId = ctx.userId const [availableCourses, mySelections] = await Promise.all([ getAvailableCoursesForStudent(studentId), getStudentSelections(studentId), ]) return (

Elective Courses

Browse available electives and manage your selections.

) }