// ** React Imports import { ReactNode } from 'react' // ** MUI Imports import { styled, useTheme } from '@mui/material/styles' import MuiAppBar, { AppBarProps } from '@mui/material/AppBar' import MuiToolbar, { ToolbarProps } from '@mui/material/Toolbar' // ** Type Import import { Settings } from '../../../../context/settingsContext' interface Props { hidden: boolean settings: Settings toggleNavVisibility: () => void saveSettings: (values: Settings) => void verticalAppBarContent?: (props?: any) => ReactNode } const AppBar = styled(MuiAppBar)(({ theme }) => ({ transition: 'none', alignItems: 'center', justifyContent: 'center', padding: theme.spacing(0, 6), backgroundColor: 'transparent', color: theme.palette.text.primary, minHeight: theme.mixins.toolbar.minHeight, [theme.breakpoints.down('sm')]: { paddingLeft: theme.spacing(4), paddingRight: theme.spacing(4) } })) const Toolbar = styled(MuiToolbar)(({ theme }) => ({ width: '100%', borderBottomLeftRadius: 10, borderBottomRightRadius: 10, padding: `${theme.spacing(0)} !important`, minHeight: `${theme.mixins.toolbar.minHeight}px !important`, transition: 'padding .25s ease-in-out, box-shadow .25s ease-in-out, backdrop-filter .25s ease-in-out, background-color .25s ease-in-out' })) const LayoutAppBar = (props: Props) => { // ** Props const { settings, verticalAppBarContent: userVerticalAppBarContent } = props // ** Hooks const theme = useTheme() // ** Vars const { contentWidth } = settings return ( {(userVerticalAppBarContent && userVerticalAppBarContent(props)) || null} ) } export default LayoutAppBar