import { Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Button, Stack, Typography, LinearProgress, Box, } from '@mui/material'; import { SlpDownloadStatus } from '../common/types'; function LinearProgressWithLabel({ value }: { value: number }) { return ( {`${Math.round( value, )}%`} ); } export default function SlpDownloadModal({ status, onClose, }: { status: SlpDownloadStatus; onClose: () => void; }) { if (status.status === 'downloading') { return ( Downloading SLP files... {`Current file: ${status.currentFile}`} ); } if (status.status === 'error') { return ( Error Downloading SLP Files Failed to download the following SLP files: {status.failedFiles.map((file) => ( {file} ))} ); } return null; }