import { motion, useReducedMotion } from 'motion/react' import type { ComponentPropsWithoutRef, ReactNode } from 'react' export function useMotionConfig() { const shouldReduceMotion = useReducedMotion() return { shouldReduceMotion } } export function MotionHeader({ children, delay = 0, className, ...props }: { children: ReactNode; delay?: number } & ComponentPropsWithoutRef) { const { shouldReduceMotion } = useMotionConfig() return ( {children} ) } export function MotionSection({ children, delay = 0, className, ...props }: { children: ReactNode; delay?: number } & ComponentPropsWithoutRef) { const { shouldReduceMotion } = useMotionConfig() return ( {children} ) } export function MotionDiv({ children, delay = 0, className, ...props }: { children: ReactNode; delay?: number } & ComponentPropsWithoutRef) { const { shouldReduceMotion } = useMotionConfig() return ( {children} ) } export function MotionCardArticle({ children, className, ...props }: { children: ReactNode } & ComponentPropsWithoutRef) { const { shouldReduceMotion } = useMotionConfig() return ( {children} ) } export function MotionCardDiv({ children, className, ...props }: { children: ReactNode } & ComponentPropsWithoutRef) { const { shouldReduceMotion } = useMotionConfig() return ( {children} ) } export function MotionTableRow({ children, className, ...props }: { children: ReactNode } & ComponentPropsWithoutRef) { const { shouldReduceMotion } = useMotionConfig() return ( {children} ) }