mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
13 lines
331 B
TypeScript
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>
|
|
);
|
|
};
|