feat: create recorder ui directory
This commit is contained in:
29
src/components/recorder/SidePanelHeader.tsx
Normal file
29
src/components/recorder/SidePanelHeader.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user