import { CheckCircle } from 'lucide-react' import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' import { Button } from '@/components/ui/button' interface Props { fileName: string detected?: string importedCount: number skippedCount: number onReset: () => void } export function UploadPreview({ fileName, detected, importedCount, skippedCount, onReset }: Props) { return (
Detected: {detected}
}{importedCount} transaction{importedCount !== 1 ? 's' : ''} imported
{skippedCount > 0 && ({skippedCount} duplicate{skippedCount !== 1 ? 's' : ''} skipped
)}