diff --git a/src/components/recorder/SidePanelHeader.tsx b/src/components/recorder/SidePanelHeader.tsx index 41b33ae7..889a51e3 100644 --- a/src/components/recorder/SidePanelHeader.tsx +++ b/src/components/recorder/SidePanelHeader.tsx @@ -2,7 +2,11 @@ import React, { FC, useState } from 'react'; import { InterpretationButtons } from "../run/InterpretationButtons"; import { useSocketStore } from "../../context/socket"; -export const SidePanelHeader = () => { +interface SidePanelHeaderProps { + onPreviewClick?: () => void; +} + +export const SidePanelHeader = ({ onPreviewClick }: SidePanelHeaderProps) => { const [steppingIsDisabled, setSteppingIsDisabled] = useState(true); @@ -14,7 +18,10 @@ export const SidePanelHeader = () => { return (
- setSteppingIsDisabled(!isPaused)} /> + setSteppingIsDisabled(!isPaused)} + onPreviewComplete={onPreviewClick} + /> {/*