"use client";

import { LazyMotion, domAnimation, MotionConfig } from "motion/react";
import { CodeCopyInit } from "@/components/ui/CodeCopyInit";

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <LazyMotion features={domAnimation} strict>
      <MotionConfig
        reducedMotion="user"
        transition={{ duration: 0.3, ease: [0.22, 1, 0.36, 1] }}
      >
        <CodeCopyInit />
        {children}
      </MotionConfig>
    </LazyMotion>
  );
}
