feat: create recorder ui directory

This commit is contained in:
amhsirak
2025-01-09 20:07:42 +05:30
parent a3de19a668
commit 403345b78e
15 changed files with 13 additions and 13 deletions

View File

@@ -0,0 +1,29 @@
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>
);
};