import React from 'react'; import { Download, X } from 'lucide-react'; import { useTranslation } from 'react-i18next'; interface DownloadProgressProps { isDownloading: boolean; progress?: number; fileName?: string; onCancel?: () => void; } export const DownloadProgress: React.FC = ({ isDownloading, progress = 0, fileName, onCancel, }) => { const { t } = useTranslation(); if (!isDownloading) return null; return (

{t('download.downloading')}

{fileName && (

{fileName}

)}
{onCancel && ( )}
{progress > 0 && (

{Math.round(progress)}{t('download.percentComplete')}

)}
); };