'use client'; import { Modal } from '@/components/ui'; interface Doc { id: string; name: string; type: string; aircraft: string; date: string; status: string; size: string; } interface Props { isOpen: boolean; onClose: () => void; document: Doc | null; } export default function DocumentViewModal({ isOpen, onClose, document: doc }: Props) { if (!doc) return null; return (
); } function Info({ label, value }: { label: string; value: string }) { return
{label}:{value}
; }