mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
24 lines
802 B
TypeScript
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>
|
|
</>
|
|
);
|
|
}
|