mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-31 11:59:10 +00:00
1849b4d39f
* chore: migrate eslint to oxlint * chore: migrate prettier to oxfmt * chore: migrate typescript * chore: toThrow should have a expected value * chore: cast test value as Day * chore: small title fix * chore: mocks should be hoisted * chore: incorrect async useage * chore: test should be inside description * chore: test sohuld include an expeced * chore: oxfmt --------- Co-authored-by: alex-Arc <omnivox@LAPTOP-RC5SNBVV.localdomain>
31 lines
919 B
TypeScript
31 lines
919 B
TypeScript
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>
|
|
<AddTime playback={data.playback} />
|
|
</PlaybackTimer>
|
|
<PlaybackButtons
|
|
playback={data.playback}
|
|
numEvents={data.numEvents}
|
|
selectedEventIndex={data.selectedEventIndex}
|
|
timerPhase={data.timerPhase}
|
|
/>
|
|
<div className={style.auxTimers}>
|
|
<AuxTimer index={1} />
|
|
<AuxTimer index={2} />
|
|
<AuxTimer index={3} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|