'use client';

import { LazyMotion } from 'motion/react';
import type { ReactNode } from 'react';

// Feature bundle is fetched after hydration so it never sits on the critical path.
const loadFeatures = () => import('./motionFeatures').then((mod) => mod.default);

export function MotionProvider({ children }: { children: ReactNode }) {
  return (
    <LazyMotion features={loadFeatures} strict>
      {children}
    </LazyMotion>
  );
}
