import { CheckCircleIcon, AlertCircleIcon, XCircleIcon } from "lucide-react";
import { useUITranslation } from "@vertesia/ui/i18n";
import { UploadResultCategory } from "./UploadResultCategory";
/**
* Processed file information
*/
export interface ProcessedFile {
/** The name of the file */
name: string;
/** The status of the file upload */
status: 'success' | 'updated' | 'skipped' | 'failed';
/** Error message if status is 'failed' */
error?: string;
}
/**
* Props for the UploadSummary component
*/
export interface UploadSummaryProps {
/** List of processed files */
files: ProcessedFile[];
/** Optional class name for styling */
className?: string;
/** Optional folder location where files were uploaded */
location?: string;
/** Optional collection name where files were uploaded */
collection?: string;
}
/**
* Displays a summary of upload results with collapsible categories
*
* @example
*
{t('upload.filesProcessed', { count: totalCount })} {collection ? t('upload.inCollection', { collection }) : ""} {location ? t('upload.inFolder', { location }) : ""}