// components/motion-wrapper.tsx "use client"; import { motion } from 'motion/react'; import { ComponentProps } from 'react'; // This automatically extracts every possible prop that motion.div accepts, // including standard HTML div props (className, onClick, etc.) type MotionWrapperProps = ComponentProps; export function MotionDiv({ children, ...props }: MotionWrapperProps) { return ( {children} ); }