import { m } from 'framer-motion'; import { forwardRef, ReactNode } from 'react'; // @mui import { Box, IconButton, IconButtonProps } from '@mui/material'; // ---------------------------------------------------------------------- const IconButtonAnimate = forwardRef( ({ children, size = 'medium', ...other }, ref) => ( {children} ) ); export default IconButtonAnimate; // ---------------------------------------------------------------------- type AnimateWrapProp = { children: ReactNode; size: 'small' | 'medium' | 'large'; }; const varSmall = { hover: { scale: 1.1 }, tap: { scale: 0.95 }, }; const varMedium = { hover: { scale: 1.09 }, tap: { scale: 0.97 }, }; const varLarge = { hover: { scale: 1.08 }, tap: { scale: 0.99 }, }; function AnimateWrap({ size, children }: AnimateWrapProp) { const isSmall = size === 'small'; const isLarge = size === 'large'; return ( {children} ); }