import React from 'react'; import { Play, Pause, X } from 'lucide-react'; interface UploadProgressBarProps { progress: number; // 0 to 100 status: 'uploading' | 'paused' | 'completed' | 'error' | 'processing'; onPause?: () => void; onResume?: () => void; onCancel?: () => void; } export const UploadProgressBar: React.FC = ({ progress, status, onPause, onResume, onCancel, }) => { const isPaused = status === 'paused'; const isCompleted = status === 'completed'; const isError = status === 'error'; const getColor = () => { if (isError) return 'bg-destructive'; if (isCompleted) return 'bg-success'; if (isPaused) return 'bg-kodo-gold'; return 'bg-primary'; }; return (
{status} {Math.round(progress)}%
{!isCompleted && !isError && (
{isPaused ? ( ) : ( )}
)}
); };