'use client'; interface Document { id: string; name: string; type: string; aircraft: string; date: string; status: string; size: string; } interface DocumentViewModalProps { isOpen: boolean; onClose: () => void; document: Document | null; } export default function DocumentViewModal({ isOpen, onClose, document }: DocumentViewModalProps) { if (!isOpen || !document) return null; return (
e.stopPropagation()} >

{document.name}

Тип: {document.type} | ВС: {document.aircraft}
Размер: {document.size} | Дата: {document.date}
{document.status}
📄
Просмотр документа
Здесь будет отображаться содержимое документа. В реальном приложении здесь будет встроенный просмотрщик PDF или изображения.
); }