"use client"; import {useState} from "react"; import Link from "next/link"; export default function Header() { const [isSidebarOpen, setIsSidebarOpen] = useState(false); const toggleSidebar = () => { setIsSidebarOpen(!isSidebarOpen); }; const scrollToSection = (id: string) => { const element = document.getElementById(id); if (element) { element.scrollIntoView({behavior: "smooth"}); } else { /*go to main page and scroll*/ window.location.href = `/#${id}`; } }; return (