feat(timer): add opt-in visual completion flash

This commit is contained in:
mzspicoli committed 2026-08-26 07:28:01 +02:00
1 parent 5314b342ff
commit 1aef1d882b
20 files changed
+87 -4

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { useUI } from '../store/useUI.js'
// A new key restarts the CSS sequence even when two timers finish close together.
// The layer never catches taps and ends transparent, so it can safely stay mounted.
export default function TimerFlash() {
const id = useUI(s => s.timerFlashId)
return id ? <div key={id} className="timer-flash" aria-hidden="true" /> : null
}