/* eslint-disable no-unused-vars */
import { CloseIcon, HamburgerIcon } from "@chakra-ui/icons";
import {
Menu,
MenuButton,
MenuList,
MenuItem,
Accordion,
AccordionItem,
AccordionButton,
AccordionPanel,
AccordionIcon,
IconButton,
Text,
} from "@chakra-ui/react";
import { Box, Image } from "@chakra-ui/react";
import { Link, useLocation } from "react-router-dom";
import { Button } from "@chakra-ui/react";
// import { HashLink } from "react-router-hash-link";
import logo from "../../assets/images/rubix.png";
import { useEffect, useState } from "react";
export const MobileMenu = () => {
const [isScrolled, setIsScrolled] = useState(false);
const [menu, setMenu] = useState(false);
const location = useLocation();
const handleClick = () => {
setMenu(!menu);
};
useEffect(() => {
const handleScroll = () => {
const scrollPosition = window.scrollY;
setIsScrolled(scrollPosition > 0);
};
window.addEventListener("scroll", handleScroll);
return () => {
window.removeEventListener("scroll", handleScroll);
};
}, []);
const linkStyle = {
color: "#fff",
display: "block",
padding: "15px 0",
};
const innerLink = {
color: location.pathname === "/LearnPage" ? "rgb(222, 133, 142)" : "#fff",
display: "block",
padding: "15px 0",
};
return (
<>
{/* Learn */}
LEARN
Learn
Proof-of-pledge Protocol
Smart Contracts
Tokenomics in Rubix
{/* Build */}
BUILD
Build
Set up Rubix Node
Quorum
Subnets
{/* UseCases */}
USE CASES
FinTech
AdTech
MarTech
HealthTech
Identity and Security
Telecom
{/* Community */}
COMMUNITY
Community
{/* Wallet*/}
AFFILIATES
Wallet
Explore
>
);
};