import { Box } from '@mui/material' import { type PropsWithChildren, useRef } from 'react' import { Transition } from 'react-transition-group' import { animationDuration, defaultStyle, transitionStyles, } from './Expansion.style.js' interface ExpansionTransitionProps { in: boolean width: string onExited?: () => void } export function ExpansionTransition({ in: inProp, children, width, onExited, }: PropsWithChildren) { const nodeRef = useRef(null) return ( {(state) => { return ( {children} ) }} ) }