// ** React Import import { ReactNode } from 'react' // ** Next Import import Link from 'next/link' // ** MUI Imports import Box, { BoxProps } from '@mui/material/Box' import { styled, useTheme } from '@mui/material/styles' import Typography, { TypographyProps } from '@mui/material/Typography' // ** Type Import import { Settings } from '../../../../../core/context/settingsContext' // ** Configs import themeConfig from '../../../../../configs/themeConfig' interface Props { hidden: boolean settings: Settings toggleNavVisibility: () => void saveSettings: (values: Settings) => void verticalNavMenuBranding?: (props?: any) => ReactNode } // ** Styled Components const MenuHeaderWrapper = styled(Box)(({ theme }) => ({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', paddingRight: theme.spacing(4.5), transition: 'padding .25s ease-in-out', minHeight: theme.mixins.toolbar.minHeight })) const HeaderTitle = styled(Typography)(({ theme }) => ({ fontWeight: 600, lineHeight: 'normal', textTransform: 'uppercase', color: theme.palette.text.primary, transition: 'opacity .25s ease-in-out, margin .25s ease-in-out' })) const StyledLink = styled('a')({ display: 'flex', alignItems: 'center', textDecoration: 'none' }) const VerticalNavHeader = (props: Props) => { // ** Props const { verticalNavMenuBranding: userVerticalNavMenuBranding } = props // ** Hooks const theme = useTheme() return ( {userVerticalNavMenuBranding ? ( userVerticalNavMenuBranding(props) ) : ( {themeConfig.templateName} )} ) } export default VerticalNavHeader