This commit is contained in:
Malai Raja
2023-11-27 17:09:27 +05:30
commit 7113ac0681
223 changed files with 56261 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import { useMemo } from 'react';
// material-ui
import { Box, useMediaQuery } from '@mui/material';
// 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';
// ==============================|| HEADER - CONTENT ||============================== //
const HeaderContent = () => {
const matchesXs = useMediaQuery((theme) => theme.breakpoints.down('md'));
// eslint-disable-next-line react-hooks/exhaustive-deps
const megaMenu = useMemo(() => <MegaMenuSection />, []);
return (
<>
{!matchesXs && <Search />}
{!matchesXs && megaMenu}
{matchesXs && <Box sx={{ width: '100%', ml: 1 }} />}
<Notification />
<Message />
{!matchesXs && <Profile />}
{matchesXs && <MobileSection />}
</>
);
};
export default HeaderContent;