refactor: scope rundown to selected

This commit is contained in:
Carlos Valente
2024-09-02 20:07:34 +02:00
committed by Carlos Valente
parent a8182cac8c
commit 4706ed39f6
4 changed files with 81 additions and 34 deletions
@@ -187,15 +187,6 @@ export const useRuntimePlaybackOverview = () => {
return useRuntimeStore(featureSelector);
};
export const useTimelineOverview = () => {
const featureSelector = (state: RuntimeStore) => ({
plannedStart: state.runtime.plannedStart,
plannedEnd: state.runtime.plannedEnd,
});
return useRuntimeStore(featureSelector);
};
export const useTimelineStatus = () => {
const featureSelector = (state: RuntimeStore) => ({
clock: state.clock,