mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
ee1b5b7fdd
* pass on offset * account for offset in roll * prevent roll from overtime * add test
30 lines
872 B
TypeScript
30 lines
872 B
TypeScript
import { Playback } from 'ontime-types';
|
|
|
|
import { usePlaybackControl } from '../../../common/hooks/useSocket';
|
|
|
|
import AddTime from './add-time/AddTime';
|
|
import { AuxTimer } from './aux-timer/AuxTimer';
|
|
import PlaybackButtons from './playback-buttons/PlaybackButtons';
|
|
import PlaybackTimer from './playback-timer/PlaybackTimer';
|
|
|
|
import style from './PlaybackControl.module.scss';
|
|
|
|
export default function PlaybackControl() {
|
|
const data = usePlaybackControl();
|
|
|
|
return (
|
|
<div className={style.mainContainer}>
|
|
<PlaybackTimer playback={data.playback as Playback}>
|
|
<AddTime playback={data.playback} />
|
|
</PlaybackTimer>
|
|
<PlaybackButtons
|
|
playback={data.playback}
|
|
numEvents={data.numEvents}
|
|
selectedEventIndex={data.selectedEventIndex}
|
|
timerPhase={data.timerPhase}
|
|
/>
|
|
<AuxTimer />
|
|
</div>
|
|
);
|
|
}
|