import React from 'react'; import { LoaderCircle, CheckCircle2, XCircle, FileClock, Database, Search, Bot } from 'lucide-react'; function JobStatusCard({ job }) { const getStatusInfo = (status) => { const statusMap = { 'PENDING': { icon: , text: 'Your analysis is in the queue.', bgColor: 'bg-yellow-900/50 border-yellow-400/30', }, 'DATA_FETCHING': { icon: , text: 'Agent 1: Data Agent is fetching fundamentals...', bgColor: 'bg-blue-900/50 border-blue-400/30', }, 'INTELLIGENCE_GATHERING': { icon: , text: 'Agent 2: Intelligence Agent is scanning news...', bgColor: 'bg-blue-900/50 border-blue-400/30', }, 'ANALYZING': { icon: , text: 'Agent 3: Analyst Agent is generating a report with Gemini...', bgColor: 'bg-blue-900/50 border-blue-400/30', }, 'SUCCESS': { icon: , text: 'All agents have completed their tasks!', bgColor: 'bg-green-900/50 border-green-400/30', }, 'FAILED': { icon: , text: `Analysis failed. See error below.`, bgColor: 'bg-red-900/50 border-red-400/30', } }; return statusMap[status] || { icon: , text: 'Waiting for status...', bgColor: 'bg-gray-800 border-gray-600', }; }; const statusInfo = getStatusInfo(job.status); return (
{statusInfo.icon}

Analysis for {job.ticker}

{statusInfo.text}

); } export default JobStatusCard;