+ {/* Header controls */}
+
+
+ set('name', e.target.value)}
+ placeholder="Nom du desk"
+ className="w-full bg-dark-900 border border-slate-700/40 rounded px-3 py-2 text-sm text-white"
+ />
+
+
+
+
+
+ {/* System prompt */}
+
+
+
+
+ {/* Instruments */}
+
set('instruments', v)}
+ />
+
+ {/* Type-specific config */}
+
+
Configuration
+ {d.type === 'news' && (
+
set('config', c)}
+ />
+ )}
+ {d.type === 'eco' && (
+ set('config', c)}
+ />
+ )}
+ {d.type === 'technical' && catalog.length > 0 && (
+
+ )}
+
+
+ {/* Actions */}
+
+
+
+
+
+ )
+}
+
+
+// ── Main page ─────────────────────────────────────────────────────────────────
+
+export default function AIDesks() {
+ const [desks, setDesks] = useState