import { Brain, Code, Search, ShieldCheck } from 'lucide-react'; const AGENT_CONFIG = { orchestrator: { name: 'Orchestrator', icon: Brain, color: '#f472b6' }, researcher: { name: 'Researcher', icon: Search, color: '#38bdf8' }, coder: { name: 'Dev Agent', icon: Code, color: '#a78bfa' }, reviewer: { name: 'Reviewer', icon: ShieldCheck, color: '#34d399' } }; export default function ChatArea({ messages }) { return (
{messages.map((msg, idx) => (
{msg.type !== 'user' && (
)}
{msg.content}
{msg.tool && (
{msg.tool.name} {msg.tool.status}
{msg.tool.content}
)}
{msg.type === 'user' ? 'You' : AGENT_CONFIG[msg.agent].name} Just now
))}
); }