6 lines
232 B
JavaScript
6 lines
232 B
JavaScript
|
// Does this device prefer reduced motion? Returns `null` server-side.
|
||
|
const prefersReducedMotion = { current: null };
|
||
|
const hasReducedMotionListener = { current: false };
|
||
|
|
||
|
export { hasReducedMotionListener, prefersReducedMotion };
|