nezha-dash-v1/src/components/motion/motion-provider.tsx
2024-12-13 17:26:28 +08:00

12 lines
325 B
TypeScript

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>
)
}