import { useTranslation } from 'react-i18next' const ProgressBar = ({ progress, speed }: { progress: number; speed?: string }) => { const { t } = useTranslation() if (progress >= 100) { return (
{t('common.downloadComplete')}
) } return (
{speed && (
{t('common.estSpeed', { speed })}
)}
) } export default ProgressBar