nezha-dash-v1/src/components/motion/motion-provider.tsx
2024-11-24 12:08:32 +08:00

13 lines
331 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>
);
};