()
| 149 | }, between(BLINK_EVERY_MS)); |
| 150 | }; |
| 151 | const actionLoop = () => { |
| 152 | later(() => { |
| 153 | if (!isBusy && !prefersReducedMotion) { |
| 154 | play( |
| 155 | pickPatchyIdleAction(Math.random(), { |
| 156 | isReading: readingRef.current, |
| 157 | isEvening: new Date().getHours() >= 21, |
| 158 | }), |
| 159 | ); |
| 160 | } |
| 161 | actionLoop(); |
| 162 | }, between(ACTION_EVERY_MS)); |
| 163 | }; |
| 164 | if (canBlink) { |
| 165 | blinkLoop(); |
| 166 | } |
no test coverage detected