import React from 'react'; import { useLanguage } from '../../contexts/LanguageContext'; import { useNavigate } from 'react-router-dom'; import { Search, Plus, MoreHorizontal, MessageSquare } from 'lucide-react'; import { motion, AnimatePresence } from 'framer-motion'; import { cn } from '../../src/utils/cn'; // Mock data based on the provided design interface AgentMock { id: string; name: string; description: string; status: 'running' | 'stopped'; updatedAt: string; iconEmoji: string; iconBgClass: string; path?: string; } const mockAgents: AgentMock[] = [ { id: 'assessment', name: 'assessmentTitle', description: 'assessmentDesc', status: 'running', updatedAt: 'agent1Time', iconEmoji: '📋', iconBgClass: 'bg-blue-50', path: '/assessment' }, { id: 'data-analyst', name: 'agent1Name', description: 'agent1Desc', status: 'running', updatedAt: 'agent1Time', iconEmoji: '📊', iconBgClass: 'bg-emerald-50' }, { id: 'code-review', name: 'agent2Name', description: 'agent2Desc', status: 'running', updatedAt: 'agent2Time', iconEmoji: '💻', iconBgClass: 'bg-indigo-50' }, { id: 'paper-polisher', name: 'agent3Name', description: 'agent3Desc', status: 'stopped', updatedAt: 'agent3Time', iconEmoji: '✍️', iconBgClass: 'bg-amber-50' }, { id: 'legal-consultant', name: 'agent4Name', description: 'agent4Desc', status: 'running', updatedAt: 'agent4Time', iconEmoji: '⚖️', iconBgClass: 'bg-rose-50' }, { id: 'market-researcher', name: 'agent5Name', description: 'agent5Desc', status: 'running', updatedAt: 'agent5Time', iconEmoji: '📈', iconBgClass: 'bg-cyan-50' } ]; export const AgentsView: React.FC = () => { const { t } = useLanguage(); const navigate = useNavigate(); return (
{t('agentDesc')}
{t(agent.description as any)}