feat: timeline view

This commit is contained in:
Carlos Valente
2024-07-22 22:28:17 +02:00
committed by Carlos Valente
parent bad491063d
commit 3012d73285
36 changed files with 886 additions and 26 deletions
@@ -327,6 +327,10 @@ export const swapEventData = (eventA: OntimeEvent, eventB: OntimeEvent): { newA:
return { newA, newB };
};
export function getEventWithId(rundown: OntimeRundown, id: string): OntimeRundownEntry | undefined {
return rundown.find((event) => event.id === id);
}
/**
* Gets relevant block element for a given ID
* @param rundown