{tables.map(table => (
setSelectedTableId(table.id)}
/>
))}
// App.jsx — Ana uygulama const { useState, useEffect } = React; function Clock({ lang }) { const [now, setNow] = useState(new Date()); useEffect(() => { const id = setInterval(() => setNow(new Date()), 1000); return () => clearInterval(id); }, []); const locale = lang === 'tr' ? 'tr-TR' : 'en-GB'; const timeStr = now.toLocaleTimeString(locale, { hour: '2-digit', minute: '2-digit', second: '2-digit' }); const dateStr = now.toLocaleDateString(locale, { weekday: 'long', day: 'numeric', month: 'long' }); return (
{bootError}