Files
NapCatQQ/.pnpm-store/v3/files/45/3a922c30eca8fcd6df7740f43b71f037b53e8f3f9b5dba1222f7f18e4fafd74593b69d9dfb2879af202b4c9c136ba9eb57f1f8c631d1e891348a2855eeaf0a
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
574 B
Plaintext

"use client";
import { useContext } from 'react';
import { MotionConfigContext } from '../../context/MotionConfigContext.mjs';
import { useReducedMotion } from './use-reduced-motion.mjs';
function useReducedMotionConfig() {
const reducedMotionPreference = useReducedMotion();
const { reducedMotion } = useContext(MotionConfigContext);
if (reducedMotion === "never") {
return false;
}
else if (reducedMotion === "always") {
return true;
}
else {
return reducedMotionPreference;
}
}
export { useReducedMotionConfig };