import { BadgeInfo, GitBranch, LayoutGrid, Loader2, MousePointer2, Play, Plus, RefreshCw, Save, Trash2, } from 'lucide-react' type WorkflowExecutionModeOption = { value: string label: string } interface WorkflowCanvasToolbarProps { workflowName: string blueprintLabel?: string | null blueprintDescription?: string | null graphFamilyLabel: string graphFamilyClassName: string executionMode: string executionModeLabel: string executionModeClassName: string executionModeHint: string dispatchContextId: string executionModes: WorkflowExecutionModeOption[] selectedEdgeCount: number canAutoLayout: boolean hasValidationErrors: boolean isPreflightPending: boolean isDispatchPending: boolean isSaving: boolean onDispatchContextIdChange: (value: string) => void onExecutionModeChange: (value: string) => void onOpenNodeMenu: () => void onAutoLayout: () => void onDeleteSelectedEdges: () => void onPreflight: () => void onDispatch: () => void onSave: () => void } export function WorkflowCanvasToolbar({ workflowName, blueprintLabel, blueprintDescription, graphFamilyLabel, graphFamilyClassName, executionMode, executionModeLabel, executionModeClassName, executionModeHint, dispatchContextId, executionModes, selectedEdgeCount, canAutoLayout, hasValidationErrors, isPreflightPending, isDispatchPending, isSaving, onDispatchContextIdChange, onExecutionModeChange, onOpenNodeMenu, onAutoLayout, onDeleteSelectedEdges, onPreflight, onDispatch, onSave, }: WorkflowCanvasToolbarProps) { return (
Workflow Canvas

{workflowName}

{graphFamilyLabel} {executionModeLabel} {blueprintLabel && ( {blueprintLabel} )}
{(blueprintDescription || executionModeHint) && ( {blueprintDescription ?? executionModeHint} )} Right-click to add Delete removes connections

{executionModeHint}

) }