import type { Metadata } from "next"; import { getCurrentCustomer } from "@/lib/auth/customer"; import { getCustomerBookings } from "@/lib/booking/queries"; import { BookingCard } from "@/components/booking/BookingCard"; export const metadata: Metadata = { title: "Meine Termine" }; export default async function KontoTerminePage() { const customer = await getCurrentCustomer(); if (!customer) return null; const bookings = await getCustomerBookings(customer.id); return (

Meine Termine

{bookings.length === 0 ? (

Du hast noch keine Terminanfragen gestellt.

) : (
{bookings.map((b) => ( ))}
)}
); }