'use client' import React from 'react' interface AvailableStepType { slug: string label?: string inputSchema?: any[] outputSchema?: any[] } interface WorkflowToolbarProps { availableStepTypes: AvailableStepType[] onAddStep: (stepType: string) => void onSave: () => void } export const WorkflowToolbar: React.FC = ({ availableStepTypes, onAddStep, onSave }) => { const getStepTypeLabel = (stepType: AvailableStepType) => { return stepType.label || stepType.slug.replace(/-/g, ' ').replace(/\b\w/g, l => l.toUpperCase()) } const getStepTypeIcon = (stepType: AvailableStepType) => { // Simple icon mapping based on step type switch (stepType.slug) { case 'http-request-step': return '🌐' case 'create-document-step': return '📄' case 'read-document-step': return '👁️' case 'update-document-step': return '✏️' case 'delete-document-step': return '🗑️' case 'send-email-step': return '📧' default: return '⚡' } } return (

Add Step

{availableStepTypes.map((stepType) => ( ))}
) }