import { AnimatePresence, motion } from 'framer-motion'; import { type AnimationDuration } from '@ui/theme'; import { useTheme } from '@ui/theme-constants'; type AnimatedFadeOutProps = { isOpen: boolean; children: React.ReactNode; duration?: AnimationDuration; marginBottom?: string; marginTop?: string; }; export const AnimatedFadeOut = ({ isOpen, children, duration = 'normal', marginBottom, marginTop, }: AnimatedFadeOutProps) => { const theme = useTheme(); return ( {isOpen && ( {children} )} ); };