import Link from 'next/link'; import React from 'react'; import { Disclosure, Menu, Transition } from '@headlessui/react' import { BellIcon, MenuIcon, XIcon } from '@heroicons/react/outline' const navigation = [ { name: 'Dashboard', href: '#', current: true }, { name: 'Team', href: '#', current: false }, { name: 'Projects', href: '#', current: false }, { name: 'Calendar', href: '#', current: false }, ] function classNames(...classes) { return classes.filter(Boolean).join(' ') } const Navigation = (): JSX.Element => { return ( {({ open }) => ( <>
{/* Mobile menu button*/} Open main menu {open ? (
Workflow Workflow
{navigation.map((item) => ( {item.name} ))}
{/* Profile dropdown */}
Open user menu
{({ active }) => ( Your Profile )} {({ active }) => ( Settings )} {({ active }) => ( Sign out )}
{navigation.map((item) => ( {item.name} ))}
)}
); }; export default Navigation;