mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
15 lines
346 B
TypeScript
15 lines
346 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>
|
|
);
|
|
};
|