import React from 'react' import { Card, CardContent } from '../ui/card' import EventRsvpModal from './EventRsvpModal' interface GuestBookEntry { id: string fName: string lName: string } interface EventGuest { id: string rsvp: 'YES' | 'NO' | 'PENDING' eventId: string guestBookEntryId: string guestBookEntry: GuestBookEntry } interface Props { eventGuests: EventGuest[] } export default function EventRsvpTracking({ eventGuests }: Props) { const attendingGuests = eventGuests.filter((g) => g.rsvp === 'YES'); const notAttendingGuests = eventGuests.filter((g) => g.rsvp === 'NO'); const pendingGuests = eventGuests.filter((g) => g.rsvp === 'PENDING'); return (

RSVP Tracking

Invited

{eventGuests.length}

Confirmed

{attendingGuests.length}

Declined

{notAttendingGuests.length}

Pending

{pendingGuests.length}

) }