import { useState, useEffect } from 'react' import { Shield, Zap, Eye, Volume2, Video, Search, Lightbulb, CheckCircle, AlertCircle } from 'lucide-react' const agentIcons = { 'text-analyzer': Search, 'image-processor': Eye, 'audio-guard': Volume2, 'video-shield': Video, 'security-auditor': Shield, 'creative-solver': Lightbulb } const statusColors = { active: 'text-green-500', monitoring: 'text-yellow-500', idle: 'text-gray-500' } export default function AgentSelector({ onAgentSelect, selectedAgent }) { const [agents, setAgents] = useState([]) const [loading, setLoading] = useState(true) useEffect(() => { fetchAgents() }, []) const fetchAgents = async () => { try { const response = await fetch('/api/agents/status') const data = await response.json() setAgents(data.agents) } catch (error) { console.error('Failed to fetch agents:', error) } finally { setLoading(false) } } if (loading) { return (
) } return (

Agent Selection

{agents.map((agent) => { const Icon = agentIcons[agent.id] || Shield return ( ) })}
) }