import { getServerSession } from "next-auth"; import { redirect } from "next/navigation"; import CalendarBoard from "../components/CalendarBoard"; import { authOptions } from "../lib/auth"; export default async function HomePage() { const session = await getServerSession(authOptions); return (
{session?.user?.status === "ACTIVE" ? ( ) : session?.user ? (

Dein Konto wartet auf Freischaltung durch einen Admin.

) : ( redirect("/login") )}
); }