import React, { useState } from 'react'; import { LegalCase } from '../types'; import { exportLegalCaseToPDF } from '../services/pdfService'; interface PDFExportModalProps { legalCase: LegalCase; onClose: () => void; } export const PDFExportModal: React.FC = ({ legalCase, onClose }) => { const [downloading, setDownloading] = useState(false); const handleDownloadDirectPDF = () => { setDownloading(true); try { exportLegalCaseToPDF(legalCase); } catch (err) { console.error('Error generating PDF:', err); } finally { setDownloading(false); } }; const handlePrint = () => { window.print(); }; return (
e.stopPropagation()} className="bg-white rounded-2xl max-w-3xl w-full max-h-[90vh] flex flex-col shadow-2xl border border-[#E2E8F0] overflow-hidden cursor-default" > {/* Modal Top Bar */}
picture_as_pdf

Download Official Legal Notice

Compliant with Statutory Filing Standards

{/* Document Preview Box with Print ID Container */}
{/* Footer */}
Includes cryptographic timestamp & auto-redacted personal data.
); };