mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
refactor: extract timeline data to hook
This commit is contained in:
committed by
Carlos Valente
parent
bea7e2bb2b
commit
c300fc18e1
@@ -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,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user