// MRB Auto storefront — responsive Header (mobile-first) + mobile drawer const _mkH = (n) => (props) => { const C = window.MRBAutoDesignSystem_73c751 && window.MRBAutoDesignSystem_73c751[n]; return C ? React.createElement(C, props) : null; }; const IconButton = _mkH('IconButton'), Icon = _mkH('Icon'), Button = _mkH('Button'); const NAV = ['Mercedes', 'BMW', 'Audi', 'Land Rover', 'Porsche', 'VW', 'Catégories', 'Jantes']; const LOGO = () => (window.__resources && window.__resources.logo) || 'assets/logo-mrbauto.webp'; function TopBar() { const items = ['Livraison 24-48h France & Europe', 'Paiement 3x / 4x sans frais', 'Satisfait ou remboursé 14 jours', 'Entreprise française depuis 2015']; return (
{items.map((t, i) => ( {t} ))}
{['FR', 'EN', 'DE', 'ES', 'IT'].map((l, i) => ( {l} ))}
); } function MobileDrawer({ open, onClose, cartCount }) { return ( <>
); } function Header({ cartCount, onSearch, active }) { const [menu, setMenu] = React.useState(false); React.useEffect(() => { document.body.style.overflow = menu ? 'hidden' : ''; return () => { document.body.style.overflow = ''; }; }, [menu]); const SearchField = ({ big }) => (
onSearch && onSearch(e.target.value)} style={{ flex: 1, border: 'none', outline: 'none', background: 'transparent', fontFamily: 'var(--font-sans)', fontSize: '14px', color: 'var(--text-primary)', minWidth: 0 }} /> {big && }
); return (
MRB Auto
Conseil & SAV 07 61 07 91 55
{/* mobile inline search row */}
setMenu(false)} cartCount={cartCount} />
); } window.MRBHeader = Header;