import { forwardRef, type ReactNode } from "react"; import { StepField } from "./stepField"; import type { StepSuggestion } from "../stepAutocomplete"; const STEP_PLACEHOLDER = "Enter step name"; const EXPECTED_RESULT_PLACEHOLDER = "Enter expected result"; type StepHorizontalViewProps = { blockId: string; stepNumber: number; stepValue: string; expectedResult: string; onStepChange: (next: string) => void; onExpectedChange: (next: string) => void; onInsertNextStep: () => void; onFieldFocus: () => void; viewToggle?: ReactNode; focusSignal?: number; }; export const StepHorizontalView = forwardRef(function StepHorizontalView({ blockId, stepNumber, stepValue, expectedResult, onStepChange, onExpectedChange, onInsertNextStep, onFieldFocus, viewToggle, focusSignal, }, ref) { return (
{stepNumber}
(suggestion as StepSuggestion).isSnippet !== true} onFieldFocus={onFieldFocus} multiline enableImageUpload showFormattingButtons showImageButton />
); });