import type { ReactNode } from "react"; import Link from "next/link"; import { redirect } from "next/navigation"; import { Container } from "@/components/Section"; import { LogoutButton } from "@/components/auth/LogoutButton"; import { getCurrentCustomer } from "@/lib/auth/customer"; export const dynamic = "force-dynamic"; const navItems = [ { title: "Übersicht", href: "/konto" }, { title: "Kalender", href: "/konto/kalender" }, { title: "Meine Termine", href: "/konto/termine" }, { title: "Profil", href: "/konto/profil" }, ]; export default async function KontoLayout({ children }: { children: ReactNode }) { const customer = await getCurrentCustomer(); if (!customer) redirect("/login?next=/konto"); return (

Mein Konto

Hallo, {customer.name}

{children}
); }