import { useRef, ReactNode } from 'react'; import { Transition as AlertTransition } from 'react-transition-group'; import { TransitionProps } from 'react-transition-group/Transition'; import { DURATION, DEFAULT_STYLE, TRANSITION_STYLES } from './const'; type Props = Partial & { children: ReactNode; }; const Transition = ({ children, ...props }: Props) => { const ref = useRef(null); return ( {(state) => (
{children}
)}
); }; export { Transition };