refactor: extract timeline data to hook

This commit is contained in:
Carlos Valente
2025-07-24 07:13:29 +02:00
committed by Carlos Valente
parent bea7e2bb2b
commit c300fc18e1
6 changed files with 151 additions and 71 deletions
@@ -269,3 +269,8 @@ export const useStudioTimersSocket = createSelector((state: RuntimeStore) => ({
time: state.timer,
runtime: state.runtime,
}));
export const useTimelineSocket = createSelector((state: RuntimeStore) => ({
clock: state.clock,
offsetAbs: state.runtime.offsetAbs,
}));