{type === 'researcher' ? (
setDescription(e.target.value)}
className={inputCls}
placeholder={t('agents.form.researchTopicPlaceholder')}
/>
) : (
setDescription(e.target.value)}
className={inputCls}
placeholder={t('agents.form.descriptionPlaceholder')}
/>
)}
{(type === 'scraper' || type === 'custom') && (
{urls.map((url, i) => (
updateUrl(i, e.target.value)}
className={inputCls}
placeholder="https://example.com"
/>
{urls.length > 1 && (
)}
))}
)}
{showSourceNotebook && (
)}
{(type === 'slide-generator' || type === 'excalidraw-generator') && sourceNotebookId && noteOptions.length > 0 && (
{noteOptions.map(note => {
const isSelected = sourceNoteIds.includes(note.id)
return (
)
})}
{sourceNoteIds.length > 0 && (
{t('agents.form.notesSelected', { count: sourceNoteIds.length })}
)}
)}
{type === 'slide-generator' && (
<>
{(['soft', 'sharp', 'rounded', 'pill'] as const).map(s => (
))}
>
)}
{type === 'excalidraw-generator' && (
<>
{([
{ id: 'auto', labelKey: 'agents.form.excalidrawDiagramTypeAuto' },
{ id: 'flowchart', labelKey: 'agents.form.excalidrawDiagramTypeFlowchart' },
{ id: 'mindmap', labelKey: 'agents.form.excalidrawDiagramTypeMindmap' },
{ id: 'org-chart', labelKey: 'agents.form.excalidrawDiagramTypeOrgChart' },
{ id: 'timeline', labelKey: 'agents.form.excalidrawDiagramTypeTimeline' },
{ id: 'process-map', labelKey: 'agents.form.excalidrawDiagramTypeProcessMap' },
{ id: 'architecture-cloud', labelKey: 'agents.form.excalidrawDiagramTypeArchitectureCloud' },
] as const).map(opt => (
))}
{([
{ id: 'default', labelKey: 'agents.form.excalidrawDiagramStyleDefault' },
{ id: 'sketch-plus', labelKey: 'agents.form.excalidrawDiagramStyleSketchPlus' },
{ id: 'austere', labelKey: 'agents.form.excalidrawDiagramStyleAustere' },
] as const).map(opt => (
))}
>
)}
{type !== 'slide-generator' && type !== 'excalidraw-generator' && (
)}