'use client' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' interface Registration { id: number userId: number username: string createdAt: Date } interface Props { registrations: Registration[] } export function EventRegistrations({ registrations }: Props) { return ( Registrations ({registrations.length}) {registrations.length === 0 ? (

No registrations yet.

) : (
{registrations.map((r) => (
{r.username} {new Date(r.createdAt).toLocaleString()}
))}
)}
) }