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 (
);
}
if (status.status === 'error') {
return (
);
}
return null;
}