'use client'; import { Modal, StatusBadge } from '@/components/ui'; interface Props { isOpen: boolean; onClose: () => void; checklist: any; onSave?: (data: any) => void; } export default function ChecklistCardModal({ isOpen, onClose, checklist }: Props) { if (!checklist) return null; const items = checklist.checklistItems || checklist.items || []; return (
Тип: {checklist.type || checklist.domain || '—'}
Статус:
ВС: {checklist.aircraft || '—'}
Дата: {checklist.date || '—'}
{checklist.inspector &&
Инспектор: {checklist.inspector}
} {checklist.operator &&
Оператор: {checklist.operator}
}
{items.length > 0 && (

Пункты ({items.length})

{items.map((item: any, i: number) => (
{item.checked && '✓'} {item.code || ''} {item.text}
))}
)}
); }