import { useState } from "react"; import { useLocation } from "react-router-dom"; // import { disablePageScroll, enablePageScroll } from "scroll-lock"; import Button from "../Button/index.tsx"; import Logo from "../Logo/index.js"; import Image from "../Image/index.tsx"; // 简化版导航数据 const navigation = [ { id: "0", title: "Features", url: "/features" }, { id: "1", title: "Pricing", url: "/pricing" }, { id: "2", title: "How to use", url: "/how-to-use" }, { id: "3", title: "Roadmap", url: "/roadmap" }, ]; const Header = () => { const [openNavigation, setOpenNavigation] = useState(false); const location = useLocation(); const toggleNavigation = () => { setOpenNavigation(!openNavigation); // if (openNavigation) { // enablePageScroll(); // } else { // disablePageScroll(); // } }; const handleClick = () => { setOpenNavigation(false); }; return (
); }; export default Header;