import { useState } from 'react' import { Link, Box, HStack, IconButton, Menu, Heading, MenuButton, MenuList, MenuItem, MenuItemOption, MenuGroup, MenuOptionGroup, MenuDivider, useMediaQuery, Container } from '@chakra-ui/react' import { GiHamburgerMenu } from "react-icons/gi" import { DiGithubBadge } from "react-icons/di" type NavLinkType = { to: string, children: any, } function NavLink({to, children} : NavLinkType) { return {children} } function MobileNav() { return }> Action }>View source } function DesktopNav() { return Source code } function Navigation() { const [isMobile] = useMediaQuery("(max-width: 768px)") let navigationComponent = isMobile ? MobileNav : DesktopNav return {navigationComponent()} } export default function Navbar() { return Michal }