import { useEffect, useRef } from 'react' type Props = { open: boolean customerName: string customerEmail: string tableName: string date: string startTime: string endTime: string partySize: number onClose: () => void } function FlameBadgeIcon() { return ( ) } export function ReservationConfirmedModal({ open, customerName, customerEmail, tableName, date, startTime, endTime, partySize, onClose, }: Props) { const closeRef = useRef(null) useEffect(() => { if (!open) return closeRef.current?.focus() function handleKeyDown(event: KeyboardEvent) { if (event.key === 'Escape') onClose() } document.addEventListener('keydown', handleKeyDown) return () => document.removeEventListener('keydown', handleKeyDown) }, [open, onClose]) if (!open) return null return (
event.stopPropagation()} >

Tisch reserviert!

Bis bald, {customerName}! Wir halten Ihnen den Platz warm und legen schon mal Kohle nach.

Tisch
{tableName}
Datum
{date}
Uhrzeit
{startTime} – {endTime}
Personen
{partySize}

Eine Bestätigung ist unterwegs an {customerEmail}. Dort finden Sie auch einen Link, falls sich doch noch etwas ändert.

) }