refactor: extract countdown data to hook

This commit is contained in:
Carlos Valente
2025-07-24 06:17:19 +02:00
committed by Carlos Valente
parent 20ee391525
commit f23adfa45c
6 changed files with 119 additions and 82 deletions
@@ -242,3 +242,9 @@ export const useTimerSocket = createSelector((state: RuntimeStore) => ({
aux3: state.auxtimer3.current,
},
}));
export const useCountdownSocket = createSelector((state: RuntimeStore) => ({
playback: state.timer.playback,
current: state.timer.current,
clock: state.clock,
}));