Files
maro 45261a0461 Initial commit: ANOUMA website with Payload CMS, WebRTC meetings, and booking system
- Next.js 16 App Router site with the ANOUMA design system
- Payload CMS (PostgreSQL) for offers, events, posts and page content
- WebRTC video-call system with custom signaling server
- SMTP email reminders and booking-request notifications
- Customer accounts, calendar-based availability, and booking workflow
2026-08-25 16:40:51 +02:00

31 lines
950 B
TypeScript

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 (
<div>
<h2 className="font-serif text-xl font-medium text-anouma-plum">Meine Termine</h2>
{bookings.length === 0 ? (
<p className="mt-3 text-sm text-anouma-plum/70">
Du hast noch keine Terminanfragen gestellt.
</p>
) : (
<div className="mt-4 grid gap-4 sm:grid-cols-2">
{bookings.map((b) => (
<BookingCard key={b.id} booking={b} />
))}
</div>
)}
</div>
);
}