import Link from 'next/link'; import React from 'react'; import { Disclosure} from '@headlessui/react' import { MenuIcon, XIcon } from '@heroicons/react/outline' const navigation = [ { name: 'Главная', href: '/', current: true }, { name: 'Правила', href: '/posts/[slug]', as:'/posts/regulations', current: false }, { name: 'Регистрация', href: '/registration', current: false }, { name: 'О нас', href: '/about', current: false }, ] function classNames(...classes) { return classes.filter(Boolean).join(' ') } const Navigation = (): JSX.Element => { return ( {({ open }) => ( <>
{/* Mobile menu button*/} Open main menu {open ? (
{navigation.map((item) => ( {item.name} ))}
{navigation.map((item) => ( {item.name} ))}
)}
); }; export default Navigation;