import { getServerSession } from "next-auth"; import { authOptions } from "@/lib/auth"; import { redirect } from "next/navigation"; import AbsenceForm from "./absence-form"; export default async function AbsencePage() { const session = await getServerSession(authOptions); if (!session?.user) redirect("/login"); return ; }