import { SetStateAction } from 'react'; import Link from 'next/link'; import { t } from '@lingui/macro'; import { BlogIcon, ContactIcon, CVIcon, HamburgerIcon, HomeIcon, } from '@components/Icons'; import { mainNav } from '@config/nav'; import styles from './MainNav.module.scss'; const MainNav = ({ isOpened, setIsOpened, }: { isOpened: boolean; setIsOpened: (value: SetStateAction) => void; }) => { const getIcon = (id: string) => { switch (id) { case 'home': return ; case 'blog': return ; case 'contact': return ; case 'cv': return ; default: break; } }; const navItems = mainNav.map((item) => { return (
  • {getIcon(item.id)} {item.name}
  • ); }); return (
    setIsOpened(!isOpened)} autoComplete="off" />
    ); }; export default MainNav;