import React from "react"; import Button from "./Button"; type Props = {}; const menuItems = [ { name: "Home", path: "/", }, { name: "About", path: "", }, { name: "Tokenomics", path: "", }, { name: "Roadmap", path: "", }, ]; const Header = (props: Props) => { const [isScrolled, setIsScrolled] = React.useState(false); React.useEffect(() => { window.addEventListener("scroll", () => { if (window.scrollY > 0) { setIsScrolled(true); } else { setIsScrolled(false); } }); }, []); return ( <> {isScrolled ? (