// Chrome: PromoBar, Nav (with search), GameSwitcher, MobileMenu, Footer const { useState, useRef, useEffect } = React; function PromoBar() { return (
Open until 10 PM today Free Shipping on US orders over $75 Buylist Open — Top dollar for your collection Friday Night Magic every week ✦
); } function Nav({ authed, credit, cartCount, onSignInClick, onCartClick, onSellClick, onMenuClick }) { const [q, setQ] = useState(''); const [open, setOpen] = useState(false); const items = window.WW_DATA.products.filter(p => !q ? false : p.name.toLowerCase().includes(q.toLowerCase()) || p.set.toLowerCase().includes(q.toLowerCase()) ).slice(0, 5); return ( ); } function GameSwitcher() { const games = [ { href: 'index.html', label: '✦ All Games', active: true }, { href: 'magic.html', label: 'Magic: The Gathering', dot: '#9d6fdc' }, { href: 'pokemon.html', label: 'Pokémon', dot: '#f0c050' }, { href: 'riftbound.html', label: 'Riftbound', dot: '#6d99e0' }, { href: 'onepiece.html', label: 'One Piece', dot: '#e86680' }, { href: 'cyberpunk.html', label: 'Cyberpunk', dot: '#ffd400', tag: 'New' }, { href: '#mystery', label: '◈ Mystery Packs' }, { href: '#buylist', label: '◈ Buylist', hot: true }, ]; return (
{games.map((g, i) => ( e.preventDefault()}> {g.dot && } {g.label} {g.tag && {g.tag}} {g.hot && Hot} ))}
); } function MobileMenu({ open }) { if (!open) return null; return (
⚔️ Magic: The Gathering ⚡ Pokémon TCG 🌊 Riftbound ☠️ One Piece ◇ Singles ◇ Sealed Product ◇ Mystery Packs ◇ Events & Tournaments ◇ Sell to Us
); } function Footer() { return ( ); } Object.assign(window, { PromoBar, Nav, GameSwitcher, MobileMenu, Footer });