diff --git a/src/components/Output/ImportReportModal.tsx b/src/components/Output/ImportReportModal.tsx deleted file mode 100644 index 0b236aa3..00000000 --- a/src/components/Output/ImportReportModal.tsx +++ /dev/null @@ -1,107 +0,0 @@ -import { useState } from 'react'; -import { XMarkIcon, ClipboardDocumentIcon, CheckIcon } from '@heroicons/react/16/solid'; -import { partialLoss, formatReportAsText } from '../../lib/importReport'; -import type { ImportResult } from '../../lib/importReport'; -import { useT } from '../../lib/useT'; -import { DialogShell } from '../ui/DialogShell'; - -export type { ImportResult }; - -export function ImportSummaryBody({ result }: { result: ImportResult }) { - const { objectCount, report } = result; - const hasIssues = report.partial.length > 0 || report.browserLimit.length > 0 || report.unknown.length > 0; - const uniqueLosses = [...new Set(report.partial.map(partialLoss))]; - - return ( -
- {objectCount} object{objectCount !== 1 ? 's' : ''} imported as editable reconstruction. - The original ZPL model is not preserved — save as .json to keep an exact copy. -
- - {report.partial.length > 0 && ( -- All commands recognised — no design information was lost. -
- )} -+ Imported {objectCount} object{objectCount !== 1 ? 's' : ''} with{' '} + {findings.length} issue{findings.length !== 1 ? 's' : ''}: +
+