in src/components/ControlButtons.tsx [39:78]
function ControlButtons({
onStart,
onStop,
onReset,
startButtonRef,
started = false,
disabled,
startLabel = "Start",
stopLabel = "Stop",
resetLabel = "Reset",
}: Partial<PropType>) {
return (
<Stack direction="row" spacing={1}>
<ControlButton
ref={startButtonRef}
variant="contained"
onClick={onStart}
disabled={started || disabled}
>
{startLabel}
</ControlButton>
{onStop ? (
<ControlButton
variant="outlined"
onClick={onStop}
disabled={!started || disabled}
>
{stopLabel}
</ControlButton>
) : null}
{onReset ? (
<ControlButton variant="outlined" onClick={onReset} disabled={disabled}>
{resetLabel}
</ControlButton>
) : null}
</Stack>
);
}