Files
ontime/apps/client/src/views/cuesheet/cuesheet-table-header/CuesheetTableHeaderTimers.tsx
T
2024-12-10 15:53:53 +01:00

24 lines
802 B
TypeScript

import { useClock, useTimer } from '../../../common/hooks/useSocket';
import ClockTime from '../../../features/viewers/common/clock-time/ClockTime';
import RunningTime from '../../../features/viewers/common/running-time/RunningTime';
import style from './CuesheetTableHeader.module.scss';
export default function CuesheetTableHeaderTimers() {
const { current } = useTimer();
const { clock } = useClock();
return (
<>
<div className={style.timer}>
<div className={style.timerLabel}>Running Timer</div>
<RunningTime className={style.value} value={current} hideLeadingZero />
</div>
<div className={style.clock}>
<div className={style.clockLabel}>Time Now</div>
<ClockTime className={style.value} value={clock} />
</div>
</>
);
}