import PropTypes from "prop-types"; // @mui import { styled } from "@mui/material/styles"; import { Box, Stack, AppBar, Toolbar, IconButton, useTheme, } from "@mui/material"; // utils import { bgBlur } from "@/utils/cssStyles"; // components import Iconify from "@/components/iconify"; import { useModel } from "@umijs/max"; import Searchbar from "./Searchbar"; import AccountPopover from "./AccountPopover"; import NotificationsPopover from "./NotificationsPopover"; import UserPage from './UserPage' // ---------------------------------------------------------------------- const HEADER_MOBILE = 64; const HEADER_DESKTOP = 64; const StyledRoot = styled(AppBar)(({ theme }) => ({ ...bgBlur({ color: theme.palette.background.default }), boxShadow: "none", })); const StyledToolbar = styled(Toolbar)(({ theme }) => ({ minHeight: HEADER_MOBILE, [theme.breakpoints.up("lg")]: { minHeight: HEADER_DESKTOP, padding: theme.spacing(0, 2), }, })); // ---------------------------------------------------------------------- Header.propTypes = { onOpenNav: PropTypes.func, }; export default function Header({ onOpenNav }) { const { initialState: { nav }, } = useModel("@@initialState"); const theme = useTheme(); return ( ); }