import React, { FC } from 'react'; import { AnimatePresence } from 'framer-motion'; import { FadeProps } from 'types'; import { Box } from '../constants'; import { variants } from './variants'; /** * `Fade` is the most basic animation component. It is performant and is only * intended to animate opacity. */ export const Fade: FC = ({ children, isVisible, variants, ...rest }) => ( {isVisible && ( {children} )} ); Fade.defaultProps = { isVisible: false, variants, }; export default Fade;