/* NEKTAR — Section 04 · Livraison & commandes 3 options : Commande en direct / UberEats / Deliveroo */ const { useState } = React; /* ------------------------------------------------------- OPTIONS ------------------------------------------------------- */ const OPTIONS = [ { id: 'direct', num: 'I', name: 'Commande en direct', desc: 'Commande spéciale sur mesure', action: 'form', }, { id: 'ubereats', num: 'II', name: 'Uber Eats', desc: 'Livraison à domicile', action: 'https://www.ubereats.com', }, { id: 'deliveroo', num: 'III', name: 'Deliveroo', desc: 'Livraison à domicile', action: 'https://deliveroo.fr', }, ]; /* ------------------------------------------------------- Formulaire commande en direct ------------------------------------------------------- */ function DrawerForm({ open, onClose }) { const [sent, setSent] = useState(false); const [form, setForm] = useState({ nom: '', email: '', date: '', type: '', message: '', }); const set = (k, v) => setForm(f => ({ ...f, [k]: v })); const handleSubmit = (e) => { e.preventDefault(); setSent(true); }; return ( <> {/* Backdrop */}