import React from 'react'; interface ResearchProgressModalProps { open: boolean; title?: string; status?: string; messages: Array<{ timestamp: string; message: string }>; error?: string | null; onClose: () => void; } const ResearchProgressModal: React.FC = ({ open, title = 'Research in progress', status, messages, error, onClose }) => { if (!open) return null; return (
{/* Header with background illustration */}

{title}

We are gathering sources, extracting insights, and preparing high‑quality research.

{status && (
Status: {status}
)}
{/* Messages list */}
{messages.length === 0 && (
Awaiting progress updates…
)} {messages.map((m, idx) => (
{new Date(m.timestamp).toLocaleTimeString()}
{m.message}
))}
{error && (
Error: {error}
)}
); }; export default ResearchProgressModal;