import React from "react"; type Props = { code: string; /** Checked in on an offline desk: nothing was sent to the parents. */ offline?: boolean; kids: { id: string; firstName: string; room: string | null; sticker: string; already?: boolean }[]; }; /** * "Write on the sticker": what volunteers copy onto a blank name sticker for each child — first * name, room, pickup code and a short allergy/medical alert — in print big enough to copy at a * glance. Nothing is printed; the full details stay on screen. */ export function StickerPanel({ code, kids, offline = false }: Props) { return (
Pickup code
{code}
{offline ? "Offline: nothing was sent — tell the parent the code." : "Sent to the parents. Tell them too, in case the message is slow."}
Write on the sticker
{kids.map(c => (
{c.firstName}
{c.room || "—"}
{code}
{c.sticker &&
{c.sticker}
} {c.already &&
Was already checked in.
}
))}
); }