import { m, MotionProps } from 'framer-motion'; // @mui import Box, { BoxProps } from '@mui/material/Box'; // hooks import { useResponsive } from 'src/hooks/use-responsive'; // import { varContainer } from './variants'; // ---------------------------------------------------------------------- type IProps = BoxProps & MotionProps; interface Props extends IProps { children: React.ReactNode; disableAnimatedMobile?: boolean; } export default function MotionViewport({ children, disableAnimatedMobile = true, ...other }: Props) { const smDown = useResponsive('down', 'sm'); if (smDown && disableAnimatedMobile) { return {children}; } return ( {children} ); }