// WineDetail.jsx — slide-over panel with full wine info const WineDetail = ({ wine, showPrices, showCata = true, onClose, selectionMode, selected, onToggleSelect }) => { if (!wine) return null; const toneByType = (t) => { const k = (t || '').toLowerCase(); if (k.includes('blanc') || k.includes('espumo')) return 'clear'; if (k.includes('rosado') || k.includes('rosé')) return 'rose'; if (k.includes('dulce') || k.includes('generoso')) return 'brown'; return 'green'; }; // ESC to close React.useEffect(() => { const fn = (e) => { if (e.key === 'Escape') onClose(); }; window.addEventListener('keydown', fn); return () => window.removeEventListener('keydown', fn); }, [onClose]); const Row = ({ label, value }) => { if (!value) return null; return (
{label} {value}
); }; return ( <>
); }; const SectionTitle = ({ children }) => (

{children}

); const TastingCard = ({ label, value }) => (
{label}

{value || Sin notas registradas.}

); window.WineDetail = WineDetail;