import { useMemo, useState } from 'react'; // material-ui import { Box, useMediaQuery, Stack, Tooltip, IconButton, Popper, ClickAwayListener, List, ListItemButton, ListItemText, Grid, ListItemIcon, Typography } from '@mui/material'; import Transitions from 'components/@extended/Transitions'; // project import import Search from './Search'; import Message from './Message'; import Profile from './Profile'; import Notification from './Notification'; import MobileSection from './MobileSection'; import MegaMenuSection from './MegaMenuSection'; import { useNavigate } from 'react-router'; import { MailOutlined, // DashboardOutlined, UserOutlined, CustomerServiceOutlined, WindowsOutlined } from '@ant-design/icons'; import { useTheme } from '@mui/material/styles'; import { TbBoxMultiple1 } from 'react-icons/tb'; import { GrMultiple } from 'react-icons/gr'; import { FaUserPen } from 'react-icons/fa6'; import { TbUserEdit } from 'react-icons/tb'; // ==============================|| HEADER - CONTENT ||============================== // const HeaderContent = () => { const matchesXs = useMediaQuery((theme) => theme.breakpoints.down('md')); // eslint-disable-next-line react-hooks/exhaustive-deps const megaMenu = useMemo(() => , []); const [open, setOpen] = useState(false); const [anchorEl, setAnchorEl] = useState(null); const theme = useTheme(); // eslint-disable-next-line react-hooks/exhaustive-deps // const megaMenu = useMemo(() => , []); const iconBackColorOpen = 'grey.300'; const iconBackColor = 'grey.100'; const navigate = useNavigate(); const handleToggle = (e) => { setOpen(!open); setAnchorEl(e.currentTarget); }; const handleClickAway = () => { setOpen(false); }; return ( <> {/* {!matchesXs && } */} {/* {!matchesXs && megaMenu} */} {localStorage.getItem('fullname') || ''} {matchesXs && } {/* */} {/* */} { // console.log(const location = useLocation();) navigate('/orders/create'); handleClickAway(); }} > Create Order } /> { // console.log(const location = useLocation();) navigate('/orders/createorders'); handleClickAway(); }} > Create Group Order } /> {/* { navigate('/clients/create') handleClickAway() }} >   Create Client } /> */} { navigate('/customers/create'); handleClickAway(); }} > Create Customer } /> {/* { navigate('/create_order') handleClickAway() }}> { navigate('/create_client') handleClickAway() }}> { navigate('/create_staff') handleClickAway() }}> */} {/* */} {/* */} {/* {!matchesXs && } {matchesXs && } */} ); }; export default HeaderContent;