import { HeaderToggleButton } from './Buttons'; import { Transitions } from '@/components/@extended'; import { useLayoutMediaState } from '@/components/Layout/Provider'; import { usePopoverState } from '@/hooks'; import { MoreOutlined } from '@ant-design/icons'; import { AppBar, ClickAwayListener, Paper, Popper, Toolbar } from '@mui/material'; import { useTheme } from '@mui/material/styles'; type IResponsiveSectionProps = React.PropsWithChildren; function ResponsiveSection(props: IResponsiveSectionProps) { const theme = useTheme(); const { downMd } = useLayoutMediaState(); const { open, anchorEl, handleToggle, handleClose } = usePopoverState(); return !downMd ? ( <>{props.children} ) : ( <> {/*@ts-ignore*/} {({ TransitionProps }) => ( //@ts-ignore {/*@ts-ignore*/} {props.children} )} ); } export { ResponsiveSection };