import Link from 'next/link'; import React, { useState } from 'react'; import { MenuIcon, XIcon } from '@heroicons/react/outline' import { Transition } from "@headlessui/react"; import { useRouter } from 'next/router' const navigation = [ { name: 'Главная', href: '/', as: false }, { name: 'Регламент', href: '/competition/[slug]', as:'regulations', patch:'competition'}, { name: 'Регистрация', href: '/competition/registration', as: false , patch:'competition' }, { name: 'Расписание', href: '/competition/[slug]', as: 'schedule' , patch:'competition'}, { name: 'Макеты полей', href: '/competition/[slug]', as:'pole_layouts' , patch:'competition'}, { name: 'Контакты', href: '/contacts', as: false , patch:''}, { name: 'О нас', href: '/about', as: false , patch:''}, ] function classNames(...classes) { return classes.filter(Boolean).join(' ') } const Navigation = (): JSX.Element => { const [isOpen, setIsOpen] = useState(false); const router = useRouter(); return ( ); }; export default Navigation;