import React from 'react'; import AgentConfigEditor from './AgentConfigEditor'; import ConfigValidationStatus from './ConfigValidationStatus'; import type { editor } from 'monaco-editor'; import type { ValidationError, ValidationWarning } from '../hooks/useAgentConfig'; interface YAMLEditorViewProps { value: string; onChange: (value: string) => void; onValidate?: (markers: editor.IMarker[]) => void; isValidating?: boolean; isValid?: boolean; errors?: ValidationError[]; warnings?: ValidationWarning[]; hasUnsavedChanges?: boolean; } /** * YAMLEditorView - Pure YAML editor with validation display * * This component is responsible for rendering the Monaco YAML editor * and the validation status bar. It doesn't handle loading/saving - * that's the parent's job. * * Reusable in both edit and create flows. */ export default function YAMLEditorView({ value, onChange, onValidate, isValidating = false, isValid = true, errors = [], warnings = [], hasUnsavedChanges = false, }: YAMLEditorViewProps) { return (