Files
parcer/src/components/recorder/SidePanelHeader.tsx
2025-01-09 20:07:42 +05:30

30 lines
749 B
TypeScript

import React, { FC, useState } from 'react';
import { InterpretationButtons } from "../run/InterpretationButtons";
import { useSocketStore } from "../../context/socket";
export const SidePanelHeader = () => {
const [steppingIsDisabled, setSteppingIsDisabled] = useState(true);
const { socket } = useSocketStore();
const handleStep = () => {
socket?.emit('step');
};
return (
<div style={{ width: 'inherit' }}>
<InterpretationButtons enableStepping={(isPaused) => setSteppingIsDisabled(!isPaused)} />
{/* <Button
variant='outlined'
disabled={steppingIsDisabled}
onClick={handleStep}
sx={{marginLeft:'15px'}}
>
step
<FastForward/>
</Button> */}
</div>
);
};