diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index bff5457..bc6c883 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -440,6 +440,75 @@ function BestellungDetail({ id, toast, onBack }) { ); } +// ── Archiv-Eintrag Modal ───────────────────────────────────────────────────── +function ArchivModal({ calcId, onClose }) { + const [item, setItem] = useState(null); + const [lightbox, setLightbox] = useState(false); + useEffect(() => { + api('/tools/kalkulator3d').then(items => { + setItem(items.find(i => i.id === calcId) || null); + }).catch(() => {}); + }, [calcId]); + + if (!item) return ( +