mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-19 17:50:13 +00:00
13 lines
321 B
TypeScript
13 lines
321 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>
|
|
);
|
|
};
|