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: '/' }, { name: 'Правила', href: '/posts/[slug]', as:'regulations'}, { name: 'Регистрация', href: '/registration', as: 'registration' }, { name: 'Расписание', href: '/posts/[slug]', as:'festival-schedule' }, { name: 'Примеры', href: '/posts/[slug]', as:'task-completion-examples'}, { name: 'О нас', href: '/about', as: 'about'}, ] function classNames(...classes) { return classes.filter(Boolean).join(' ') } const Navigation = (): JSX.Element => { const [isOpen, setIsOpen] = useState(false); const router = useRouter() return ( ); }; export default Navigation;