"use client" import { useState } from "react" import type { InvitationMember } from "@/lib/db/types" import type { GuestDictionary } from "@/lib/i18n/dictionaries" import type { MealPreference } from "@/lib/validation/response" const mealOptions: MealPreference[] = ["meat", "fish", "vegetarian", "vegan", "kids", "other"] export function RsvpGuestResponse({ member, index, dictionary, disabled, }: { member: InvitationMember index: number dictionary: GuestDictionary disabled: boolean }) { const [attending, setAttending] = useState(member.attending) return (
{member.name}

0{index + 1}

{member.name}

{dictionary.form.attending}

{[true, false].map((value) => ( ))}
) }