- Add upload-modal/ with useUploadModal, constants, and presentational components: Dropzone, FileDisplay, Progress, ErrorAlert, MetadataForm - Re-export from UploadModal.tsx for backward compatibility Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
448 B
TypeScript
17 lines
448 B
TypeScript
import { Progress } from '@/components/ui/progress';
|
|
|
|
export interface UploadModalProgressProps {
|
|
progress: number;
|
|
}
|
|
|
|
export function UploadModalProgress({ progress }: UploadModalProgressProps) {
|
|
return (
|
|
<div className="space-y-2">
|
|
<div className="flex items-center justify-between text-sm">
|
|
<span>Upload en cours...</span>
|
|
<span>{progress}%</span>
|
|
</div>
|
|
<Progress value={progress} />
|
|
</div>
|
|
);
|
|
}
|