import { Fragment } from 'react' import { Disclosure, Menu, Transition } from '@headlessui/react' import { BellIcon, MenuIcon, XIcon } from '@heroicons/react/outline' import Link from 'next/link' import siteConfig from '../config/siteConfig.js' import navLinks from '../config/navLinks.js' function classNames(...classes) { return classes.filter(Boolean).join(' ') } export default function Nav() { return ( {({ open }) => ( <>
{/* Mobile menu button */} Open main menu {open ? (
{siteConfig.title}
{/* Current: "border-indigo-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */} {navLinks.map((item) => ( {item.name} ))}
{/* Current: "bg-indigo-50 border-indigo-500 text-indigo-700", Default: "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700" */} {navLinks.map((item) => ( {item.name} ))}
)}
) }