blob: 2937b7586867a00c84144e8ef1f56e5e469d5791 (
plain)
1
2
3
4
5
6
7
8
9
|
import { useContext } from 'react';
import { MotionContext } from '../../providers/motion-provider';
export const useReducedMotion = () => {
const { isReduced, setIsReduced, toggleReducedMotion } =
useContext(MotionContext);
return { isReduced, setIsReduced, toggleReducedMotion };
};
|