import React from 'react'; import { CheckCircleIcon } from './icons/CheckCircleIcon'; import { ExclamationTriangleIcon } from './icons/ExclamationTriangleIcon'; import { InformationCircleIcon } from './icons/InformationCircleIcon'; interface BulkImportSummaryProps { summary: { processed: string[]; skipped: string[]; errors: { fileName: string; message: string }[]; }; onDismiss: () => void; } export const BulkImportSummary: React.FC = ({ summary, onDismiss }) => { const hasContent = summary.processed.length > 0 || summary.skipped.length > 0 || summary.errors.length > 0; return (

Bulk Import Report

{`Processed: ${summary.processed.length}, Skipped: ${summary.skipped.length}, Errors: ${summary.errors.length}`}

{hasContent ? (
{summary.processed.length > 0 && (

Successfully Processed ({summary.processed.length})

    {summary.processed.map((item, index) =>
  • {item}
  • )}
)} {summary.skipped.length > 0 && (

Skipped Duplicates ({summary.skipped.length})

    {summary.skipped.map((item, index) =>
  • {item}
  • )}
)} {summary.errors.length > 0 && (

Errors ({summary.errors.length})

    {summary.errors.map((err, index) => (
  • {err.fileName}: {err.message}
  • ))}
)}
) : (

No new files were found to process.

)}
); };