const statusStyles: Record = { pending: { label: "Vorgeschlagen", className: "bg-anouma-sand/60 text-anouma-plum" }, confirmed: { label: "BestÃĪtigt", className: "bg-anouma-sage/30 text-anouma-moss" }, rejected: { label: "Abgelehnt", className: "bg-red-100 text-red-800" }, cancelled: { label: "Storniert", className: "bg-anouma-taupe/30 text-anouma-plum/70" }, past: { label: "Vergangen", className: "bg-anouma-taupe/20 text-anouma-plum/60" }, }; export function BookingStatusBadge({ status }: { status: string }) { const style = statusStyles[status] ?? statusStyles.pending; return ( {style.label} ); } export function resolveDisplayStatus(status: string, dateISO: string): string { if ((status === "pending" || status === "confirmed") && new Date(dateISO) < new Date()) { return "past"; } return status; }