nezha_dash/components/motion/motion-provider.tsx
2024-12-13 15:09:12 +08:00

14 lines
339 B
TypeScript

"use client"
import { LazyMotion } from "framer-motion"
const loadFeatures = () => import("./framer-lazy-feature").then((res) => res.default)
export const MotionProvider = ({ children }: { children: React.ReactNode }) => {
return (
<LazyMotion features={loadFeatures} strict key="framer">
{children}
</LazyMotion>
)
}