import { m, AnimatePresence } from 'framer-motion'; // @mui import { Dialog, Box, Paper, DialogProps } from '@mui/material'; // import { varFade } from './variants'; // ---------------------------------------------------------------------- export interface Props extends DialogProps { variants?: Record; onClose?: VoidFunction; } export default function DialogAnimate({ open = false, variants, onClose, children, sx, ...other }: Props) { return ( {open && ( ( {props.children} )} {...other} > {children} )} ); }