import React, { useContext, useState } from "react"; import { Avatar, Box, Button, HStack, Image, Input, InputGroup, InputLeftElement, Popover, PopoverArrow, PopoverBody, PopoverContent, PopoverTrigger, Portal, Text, useDisclosure, } from "@chakra-ui/react"; import { NavLink } from 'react-router-dom'; import { MdOutlineHeadsetMic, MdNotificationsNone } from "react-icons/md"; import { RiWallet3Line } from "react-icons/ri"; import { SearchIcon, ArrowLeftIcon, ArrowRightIcon } from "@chakra-ui/icons"; import { Link, useNavigate } from "react-router-dom"; import GlobalStateContext from "../Contexts/GlobalStateContext"; import mainLogo from "../assets/optifii_white.svg"; import PrimaryButton from "./Buttons/PrimaryButton"; // import Notifications from "../Pages/Notifications/Notifications"; const HeaderMain = ({ logOutHandler, slideDirecttion, isDrawerOpen, toggleDrawer, }) => { const navigate = useNavigate(); const { image } = useContext(GlobalStateContext); const [searchTerm, setSearchTerm] = useState(""); // For controlling the modal const { isOpen, onOpen, onClose } = useDisclosure(); return ( Logo navigate("/home")} cursor={"pointer"} /> setSearchTerm(e.target.value)} /> Kartikey Gautam navigate("/profile")} title={"View Profile"} /> Kartikey Gautam Website Development India {/* Include the Notifications modal */} {/* */} ); }; export default HeaderMain;