"use client"; import { AlertTriangle } from "lucide-react"; import { format } from "date-fns"; import { de } from "date-fns/locale"; import type { RsvpEventDto } from "@/lib/rsvp"; import { RsvpDialog } from "@/components/rsvp-form"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; export function RsvpActionCard({ events }: { events: RsvpEventDto[] }) { if (events.length === 0) return null; return ( Rückmeldung erforderlich Für diese Termine fehlt noch eine Antwort eurer Familie. {events.map((event) => (

{event.title}

Rückmeldung bis{" "} {format( new Date(event.rsvpDeadline ?? event.startDate), "dd.MM.yyyy HH:mm", { locale: de }, )}

))}
); }