/* Copyright (C) 2024 Manuel Bustillo*/
import { Guest } from "@/app/lib/definitions";
function GuestRow({ guests }: { guests: Guest[] }) {
return (
{
guests.map((guest) => {
return (
{guest.name}
)
})
}
)
}
export function Table({ guests }: { guests: Guest[] }) {
const halfwayThrough = Math.floor(guests.length / 2)
const arrayFirstHalf = guests.slice(0, halfwayThrough);
const arraySecondHalf = guests.slice(halfwayThrough, guests.length);
return (
)
}