| 40 | * {@link WorkflowBuilder} above (which owns long-lived editor state). |
| 41 | */ |
| 42 | export interface BuilderLayoutProps { |
| 43 | functions: FunctionDeclaration[]; |
| 44 | /** Open (and select) an existing function — used by the sidebar list and tab dropdown. */ |
| 45 | onOpenFunction: (functionId: string) => void; |
| 46 | /** Create a new function and open it — the sidebar list's "Add" action. */ |
| 47 | onCreateFunction: () => string; |
| 48 | |
| 49 | canvasTabs: CanvasTab[]; |
| 50 | onCanvasTabChange: (tabId: string) => void; |
| 51 | onCanvasTabClose: (tabId: string) => void; |
| 52 | onCanvasTabReorder: (fromIndex: number, toIndex: number) => void; |
| 53 | |
| 54 | onDebugStep?: (nodeId?: string) => void; |
| 55 | } |
| 56 | |
| 57 | export const BuilderLayout = ({ |
| 58 | functions, |
| 59 | onOpenFunction, |
nothing calls this directly
no outgoing calls
no test coverage detected