'use client' import { Fragment, useState } from 'react' import { Dialog, DialogBackdrop, DialogPanel, Popover, PopoverButton, PopoverGroup, PopoverPanel, Tab, TabGroup, TabList, TabPanel, TabPanels, } from '@headlessui/react' import { Bars3Icon, MagnifyingGlassIcon, ShoppingBagIcon, XMarkIcon } from '@heroicons/react/24/outline' const navigation = { categories: [ { id: 'armory', name: 'Armory', featured: [ { name: 'Build Alpha', href: '#', imageSrc: 'https://images.unsplash.com/photo-1700774607099-8c4631ee9764?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', imageAlt: 'Rad AR15.', }, { name: 'Build Beta', href: '#', imageSrc: 'https://images.unsplash.com/photo-1669489890884-baff10f74b49?q=80&w=2899&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', imageAlt: 'Rad AR15.', }, ], sections: [ { id: 'lower-parts', name: 'Lower Parts', items: [ { name: 'Lower Receivers', href: '/Products/lowers' }, { name: 'Grips', href: '/Products/grips' }, { name: 'Stocks', href: '/Products/stocks' }, { name: 'Triggers', href: '/Products/triggers' }, { name: 'Parts', href: '/Products/parts' }, ], }, { id: 'upper-parts', name: 'Upper Parks', items: [ { name: 'Upper Receiver', href: '/Products/uppers' }, { name: 'Barrels', href: '/Products/barrels' }, { name: 'Handguards', href: '/Products/handguards' }, { name: 'Muzzle Devices', href: '/Products/muzzle-devices' }, ], }, { id: 'brands', name: 'Brands', items: [ { name: 'Full Nelson', href: '#' }, { name: 'My Way', href: '#' }, { name: 'Re-Arranged', href: '#' }, { name: 'Counterfeit', href: '#' }, { name: 'Significant Other', href: '#' }, ], }, ], }, ], pages: [ { name: 'Menu 2', href: '#' }, ], } export default function PopNav() { const [open, setOpen] = useState(false) return (
{/* Mobile menu */}
{/* Links */}
{navigation.categories.map((category) => ( {category.name} ))}
{navigation.categories.map((category) => (
{category.featured.map((item) => (
{item.imageAlt}
))}
{category.sections.map((section) => (

{section.name}

))}
))}
{navigation.pages.map((page) => ( ))}
{/*

Get free delivery on orders over $100

*/}
) }