import { motion } from "framer-motion"; import type { PropsWithChildren } from "react"; interface MotionProps extends PropsWithChildren { className?: string; delay?: number; duration?: number; initialY?: number; initialX?: number; } const FadeIn = (props: MotionProps) => { // Because we are directly applying props, we cannot place initialX and initialY in the motion.div const { initialY = -30, initialX = 0, duration = 0.5, delay = 0, className } = props; return ( {props.children} ); }; FadeIn.displayName = "FadeIn"; export default FadeIn;