import React, { useState } from 'react'; import { X, Download, Copy, Check, FileText, Printer, ShieldCheck } from 'lucide-react'; import { InvestigationCase } from '../../types/forensics'; interface ExportDossierModalProps { isOpen: boolean; onClose: () => void; currentCase: InvestigationCase; } export const ExportDossierModal: React.FC = ({ isOpen, onClose, currentCase, }) => { const [copied, setCopied] = useState(false); if (!isOpen) return null; const fullDossierReport = `================================================================================ CONFIDENTIAL // LAW ENFORCEMENT & COMPLIANCE SANITIZED FORENSIC REPORT SENTINEL THREAT INTELLIGENCE ENCLAVE - DIGITAL REVIEW ENGINE DOCKET IDENTIFIER: ${currentCase.id} SECURITY CLASSIFICATION: LAW ENFORCEMENT SENSITIVE (LES) / FIU ACTIONABLE DATE OF REPORT: ${new Date().toISOString()} ================================================================================ 1. EXECUTIVE SUMMARY & IDENTIFICATION ------------------------------------- Title: ${currentCase.title} Category: ${currentCase.category} Threat Severity: ${currentCase.threatLevel} Composite Trust Score: ${currentCase.compositeTrustScore} / 100 Primary Target Alias: ${currentCase.entityTarget.primaryAlias} Legal Name / Status: ${currentCase.entityTarget.legalName || 'Unresolved / Active Warrant'} Entity Classification: ${currentCase.entityTarget.entityType} Associated Wallet: ${currentCase.entityTarget.walletAddress || 'N/A'} Associated Emails: ${currentCase.entityTarget.associatedEmails.join(', ') || 'N/A'} Case Summary: ${currentCase.executiveSummary} 2. NETWORK FORENSICS & SPEED-OF-LIGHT TRIANGULATION ---------------------------------------------------- Claimed GeoIP: ${currentCase.networkTelemetry.claimedGeo.ip} (${currentCase.networkTelemetry.claimedGeo.city}, ${currentCase.networkTelemetry.claimedGeo.country}) ISP / ASN: ${currentCase.networkTelemetry.claimedGeo.isp} (${currentCase.networkTelemetry.claimedGeo.asn}) BGP Speed-of-Light Triangulation (Formula: t >= 2d / (c * 2/3)): - Propagation Delta: ${currentCase.networkTelemetry.bgpAnycast.propagationDeltaMs} ms anomaly - Physical Origin Triangulated: ${currentCase.networkTelemetry.bgpAnycast.physicalOriginInference} - Physical Violation Status: ${currentCase.networkTelemetry.bgpAnycast.speedOfLightViolation ? 'POSITIVE VIOLATION (PROXY CONFIRMED)' : 'CLEAN'} TLS JA4 / JA3 Fingerprint: - JA4: ${currentCase.networkTelemetry.tlsFingerprint.ja4} - JA3: ${currentCase.networkTelemetry.tlsFingerprint.ja3} - Detected Client Engine: ${currentCase.networkTelemetry.tlsFingerprint.detectedClientEngine} TCP/IP Stack Discrepancies: - Initial TTL: ${currentCase.networkTelemetry.tcpStack.initialTtl} (Claimed: ${currentCase.networkTelemetry.tcpStack.claimedOsTtl}) - MSS: ${currentCase.networkTelemetry.tcpStack.mss} bytes | Window: ${currentCase.networkTelemetry.tcpStack.windowSize} - OS Mismatch: ${currentCase.networkTelemetry.tcpStack.osMismatchDetails} 3. CLIENT-SIDE HARDWARE & INTERFACE PROBES ------------------------------------------ WebRTC ICE Candidate STUN Leakage: - Local Private IP: ${currentCase.networkTelemetry.clientProbes.webrtcCandidateLeak.localPrivateIp} - Unmasked Public Physical NIC: ${currentCase.networkTelemetry.clientProbes.webrtcCandidateLeak.unmaskedPublicIp} - Status: ${currentCase.networkTelemetry.clientProbes.webrtcCandidateLeak.leakDetected ? 'DIRECT INTERFACE EXPOSED' : 'CLEAN'} Ambient RF & Wi-Fi Triangulation: - BSSID MAC: ${currentCase.networkTelemetry.clientProbes.ambientRfTriangulation.bssidMac} (SSID: ${currentCase.networkTelemetry.clientProbes.ambientRfTriangulation.ssid}) - Cell Tower CGI: ${currentCase.networkTelemetry.clientProbes.ambientRfTriangulation.cellTowerCgi} (RSSI: ${currentCase.networkTelemetry.clientProbes.ambientRfTriangulation.rssiDb} dBm) - Triangulated Location: ${currentCase.networkTelemetry.clientProbes.ambientRfTriangulation.triangulatedLocation} (Accuracy: ±${currentCase.networkTelemetry.clientProbes.ambientRfTriangulation.accuracyMeters}m) 4. FINANCIAL LEDGER & AML SMURFING ANALYSIS -------------------------------------------- Total Intercepted Volume: $${currentCase.financialLedger.totalVolumeUsd.toLocaleString()} USD BSA Structuring Alert: ${currentCase.financialLedger.detectedStructuring ? 'YES (Transactions <$10k detected)' : 'NO'} Structuring Summary: ${currentCase.financialLedger.structuringSummary} Sanctions / Watchlist Hits: ${currentCase.financialLedger.sanctionsHits.join(', ') || 'None identified'} Recorded Hops: ${currentCase.financialLedger.hops.length} transactions logged. 5. STATUTORY CLASSIFICATION & REGULATORY DISPOSITION ----------------------------------------------------- 18 U.S.C. § 2331 / § 2339B Violation: ${currentCase.statutoryMatrix.usFederalCode2331 ? 'APPLICABLE' : 'NON-APPLICABLE'} EU TCO Reg (EU) 2021/784 1-Hour Removal: ${currentCase.statutoryMatrix.euTcoReg2021_784 ? 'MANDATORY 1-HOUR ORDER ACTIVE' : 'N/A'} GIFCT Hash Database Tier: ${currentCase.statutoryMatrix.gifctTier} First Amendment / Constitutional Boundary: ${currentCase.statutoryMatrix.firstAmendmentBoundary} Platform Discretion: ${currentCase.statutoryMatrix.platformEditorialProtection} 6. EVIDENCE CHAIN OF CUSTODY ---------------------------- Artifacts Logged: ${currentCase.evidenceFiles.map(e => ` - [${e.id}] ${e.name} | SHA-256: ${e.sha256Hash} | Type: ${e.fileType}`).join('\n')} CERTIFICATION: Report compiled autonomously by Sentinel Enclave Core. Integrity verified via SHA-256 HMAC. ================================================================================`; const copyToClipboard = () => { navigator.clipboard.writeText(fullDossierReport); setCopied(true); setTimeout(() => setCopied(false), 3000); }; const handlePrint = () => { window.print(); }; return (
{/* Header */}

MASTER FORENSIC DOSSIER EXPORT // {currentCase.id}

{/* Text Container */}
            {fullDossierReport}
          
{/* Footer Actions */}
Chain of Custody verified: {currentCase.id}-LES-EXPORT
); };