import type { HTMLMotionProps } from 'framer-motion' import { AnimatePresence, motion } from 'framer-motion' export interface AnimateViewProps extends HTMLMotionProps<'main'> { condition: boolean children: React.ReactNode } export const AnimateView: React.FC = ({ condition, children, ...rest }) => { return ( {condition && ( {children} )} ) }