import { FiUser, FiBriefcase, FiMapPin, FiAlertCircle, FiBarChart2, FiFileText } from 'react-icons/fi'; export default function Results({ data, loading, error }) { if (loading) { return (

Carregando dados e gerando análise...

); } if (error) { return (

{error}

); } if (!data || data.length === 0) { return (

Nenhum resultado encontrado

); } return (
{data.map((agent, index) => (
{agent.name.charAt(0)}

{agent.name}

{agent.position}

{agent.location}

{agent.status}
{agent.details && (

{agent.details}

)} {agent.analysis && (

Análise Forense

{agent.analysis}

)} {agent.recommendations && (

Recomendações

    {agent.recommendations.map((rec, i) => (
  • {rec}
  • ))}
)}
))}
); }