import { Download, FileText, CheckCircle } from 'lucide-react'; function ReportPreview({ data }) { const { reportFilename, analysis, executiveSummary } = data; const handleDownload = () => { window.open(`/api/analysis/report/${reportFilename}`, '_blank'); }; return (

Report Generated Successfully

Your government-format analysis report is ready for download

{/* Report Preview */}

GOVERNMENT OF INDIA

National Disaster Management Authority

(Ministry of Home Affairs)

DISASTER MANAGEMENT TRAINING

ANALYSIS REPORT

EXECUTIVE SUMMARY

{executiveSummary ? executiveSummary.substring(0, 300) + '...' : 'Analysis summary not available'}

KEY METRICS

Total Training Sessions

{analysis.totalTrainings || 'N/A'}

Total Participants

{analysis.totalParticipants || 'N/A'}

© National Disaster Management Authority, Government of India

CONFIDENTIAL - For Official Use Only

{/* Download Button */}

The complete report includes detailed analysis, charts, gap analysis, and recommendations

); } export default ReportPreview;