import { Link } from 'react-router-dom'; import { useAtom, useAtomValue } from 'jotai'; import { navOpenState, activeSectionState, languageState } from '../state/atoms'; import { getTranslations } from '../translations'; import ThemeToggle from './ThemeToggle'; import LanguagePicker from './LanguagePicker'; import styles from '../styles/components/Navbar.module.scss'; export default function Navbar() { const [isOpen, setIsOpen] = useAtom(navOpenState); const activeSection = useAtomValue(activeSectionState); const language = useAtomValue(languageState); const t = getTranslations(language); const NAV_LINKS = [ { label: t.nav.home, section: 'home' }, { label: t.nav.about, section: 'about' }, { label: t.nav.projects, section: 'projects' }, { label: t.nav.contact, section: 'contact' }, ]; return (
); }