import { round } from 'common/math'; import { useBackend } from '../backend'; import { Button, LabeledList, NumberInput, Section } from '../components'; import { Window } from '../layouts'; import { formatTime } from '../format'; export const AssemblyTimer = (props, context) => { const { act, data } = useBackend(context); const { timing, time } = data; return (
act('timing')}> {timing ? 'Counting Down' : 'Disabled'} }> formatTime(round(val))} onDrag={(e, val) => act('set_time', { time: val })} />
); };