mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-19 09:51:56 +08:00
12 lines
325 B
TypeScript
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>
|
|
)
|
|
}
|