(active = true)
| 32 | } |
| 33 | const motionSnapshot = () => edgeMotionPreference() && !reducedMotion() && !document.hidden; |
| 34 | export function useEdgeMotion(active = true): boolean { |
| 35 | return useSyncExternalStore(subscribe, motionSnapshot, () => false) && active; |
| 36 | } |
| 37 | export function useEdgeMotionPreference(): { enabled: boolean; reduced: boolean; setEnabled: typeof setEdgeMotionPreference } { |
| 38 | const enabled = useSyncExternalStore(subscribe, edgeMotionPreference, () => false); |
| 39 | const reduced = useSyncExternalStore(subscribe, reducedMotion, () => true); |
no outgoing calls