import React from 'react'; import { useLanguage } from '../../contexts/LanguageContext'; import { Search, Plus, MoreHorizontal, MessageSquare } from 'lucide-react'; import { motion, AnimatePresence } from 'framer-motion'; // Mock data based on the provided design interface AgentMock { id: string; name: string; description: string; status: 'running' | 'stopped'; updatedAt: string; iconEmoji: string; iconBgClass: string; } const mockAgents: AgentMock[] = [ { id: '1', name: 'agent1Name', description: 'agent1Desc', status: 'running', updatedAt: 'agent1Time', iconEmoji: '๐Ÿง‘โ€๐Ÿ’ป', iconBgClass: 'bg-indigo-50' }, { id: '2', name: 'agent2Name', description: 'agent2Desc', status: 'running', updatedAt: 'agent2Time', iconEmoji: '๐Ÿ’ป', iconBgClass: 'bg-green-50' }, { id: '3', name: 'agent3Name', description: 'agent3Desc', status: 'running', updatedAt: 'agent3Time', iconEmoji: '๐Ÿ“', iconBgClass: 'bg-blue-50' }, { id: '4', name: 'agent4Name', description: 'agent4Desc', status: 'stopped', updatedAt: 'agent4Time', iconEmoji: '๐Ÿงช', iconBgClass: 'bg-slate-100' }, { id: '5', name: 'agent5Name', description: 'agent5Desc', status: 'running', updatedAt: 'agent5Time', iconEmoji: '๐Ÿ“Š', iconBgClass: 'bg-purple-50' }, { id: '6', name: 'agent6Name', description: 'agent6Desc', status: 'running', updatedAt: 'agent6Time', iconEmoji: 'โš™๏ธ', iconBgClass: 'bg-orange-50' }, { id: '7', name: 'agent7Name', description: 'agent7Desc', status: 'running', updatedAt: 'agent7Time', iconEmoji: '๐Ÿ“ˆ', iconBgClass: 'bg-red-50' } ]; export const AgentsView: React.FC = () => { const { t } = useLanguage(); return (
{/* Header Area */}

{t('agentTitle')}

{t('agentDesc')}

{/* Content Area */}
{mockAgents.map((agent) => ( {/* Top layer */}
{agent.iconEmoji}
{/* Status Badge */} {agent.status === 'running' ? (
{t('statusRunning')}
) : (
{t('statusStopped')}
)} {/* Options button */}
{/* Middle layer */}

{t(agent.name as any)}

{t(agent.description as any)}

{/* Bottom layer */}
{t('updatedAtPrefix')}{t(agent.updatedAt as any)}
))}
); };