'use client'; import { motion, HTMLMotionProps } from 'framer-motion'; import { ReactNode } from 'react'; interface FadeInSectionProps { children: ReactNode; as?: keyof typeof motion; className?: string; delay?: number; } const FadeInSection = ({ children, as = 'div', className = '', delay = 0 }: FadeInSectionProps) => { const MotionComponent = motion[as] as React.ComponentType>; return ( {children} ); }; export default FadeInSection;