import React from 'react'; import { X, Download, FileText, Scale } from 'lucide-react'; import type { Message } from '../types/chat'; interface PDFPreviewModalProps { isOpen: boolean; onClose: () => void; pdfData?: Message['pdfPreview']; } export const PDFPreviewModal: React.FC = ({ isOpen, onClose, pdfData }) => { if (!isOpen || !pdfData) return null; const handlePrintDownload = () => { window.print(); }; return (
{/* Header Toolbar */}

{pdfData.title}

Formal Legal PDF Document Preview

{/* PDF Document Paper Body */}
{/* Formal Legal Header */}

LEGAL FORMAL NOTICE & REPORT

Generated by LawSLM AI Assistant (Developer: Amit Kumar)

Date: {new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}

{/* Title & Summary */}

{pdfData.title}

{pdfData.summary}

{/* Document Sections */}
{pdfData.sections.map((sec, idx) => (

{idx + 1}. {sec.heading}

{sec.body}

))}
{/* Signature & Seal Block */}

Prepared By:

LawSLM Automated Pipeline

Developer: Amit Kumar

Authorized Signatory

Legal & Tech Review

); };