import { motion } from "motion/react"; import type { ReactNode } from "react"; interface TransitionProps { children: ReactNode; className?: string; transitionType?: "full" | "fade"; whileInView?: boolean; } const Transition = ({ children, className = "flex flex-col w-full gap-6", transitionType = "full", whileInView = true, }: TransitionProps) => { const initial = transitionType === "full" ? { opacity: 0, y: 20 } : { opacity: 0 }; const target = transitionType === "full" ? { opacity: 1, y: 0 } : { opacity: 1 }; return ( {children} ); }; export default Transition;