import { useState } from "react"; import { FaTimes, FaBars } from "react-icons/fa"; import Logo from "../../assets/logo.svg"; import { useTranslation } from "react-i18next"; export default () => { const [state, setState] = useState(false); const { t } = useTranslation(); const [colorChange, setColorChange] = useState(false); const changeColor = () => { if (window.scrollY >= 100) { setColorChange(true); } else { setColorChange(false); } }; window.addEventListener("scroll", changeColor); // Replace javascript:void(0) path with your path const navigation = [ { title: t("navbar.services"), path: "Services" }, { title: t("navbar.advantages"), path: "Advantages" }, { title: t("navbar.contact"), path: "Contact" }, ]; const handleNavigation = (path: string) => { const element = document.getElementById(path); element?.scrollIntoView({ behavior: "smooth" }); }; return ( ); };