28 lines
677 B
TypeScript
28 lines
677 B
TypeScript
import { RsvpGuestResponse } from "@/components/invite/rsvp-guest-response"
|
|
import type { InvitationMember } from "@/lib/db/types"
|
|
import type { GuestDictionary } from "@/lib/i18n/dictionaries"
|
|
|
|
export function RsvpGuestFields({
|
|
members,
|
|
dictionary,
|
|
disabled,
|
|
}: {
|
|
members: InvitationMember[]
|
|
dictionary: GuestDictionary
|
|
disabled: boolean
|
|
}) {
|
|
return (
|
|
<section className="border-t border-wedding-line pt-10">
|
|
{members.map((member, index) => (
|
|
<RsvpGuestResponse
|
|
key={member.id}
|
|
member={member}
|
|
index={index}
|
|
dictionary={dictionary}
|
|
disabled={disabled}
|
|
/>
|
|
))}
|
|
</section>
|
|
)
|
|
}
|