feat: progress view

This commit is contained in:
Carlos Valente
2024-06-21 15:10:38 +02:00
parent b7c48f38a9
commit 8aeb4c7a01
20 changed files with 736 additions and 1 deletions
@@ -0,0 +1,23 @@
import useRundown from '../../../common/hooks-query/useRundown';
import { getTimelineSections } from './timelineUtils';
import style from './TimelineMarkers.module.scss';
export function TimelineMarkers() {
const { data } = useRundown();
if (data.revision === -1) {
return null;
}
const elements = getTimelineSections(data.rundown, data.order);
return (
<div className={style.markers}>
{elements.map((tag, index) => {
return <span key={index}>{tag}</span>;
})}
</div>
);
}