import * as React from 'react'; import AspectRatio from '@mui/joy/AspectRatio'; import Box from '@mui/joy/Box'; import Card, { CardProps } from '@mui/joy/Card'; import CardContent from '@mui/joy/CardContent'; import IconButton from '@mui/joy/IconButton'; import LinearProgress from '@mui/joy/LinearProgress'; import Typography from '@mui/joy/Typography'; import InsertDriveFileRoundedIcon from '@mui/icons-material/InsertDriveFileRounded'; import CheckRoundedIcon from '@mui/icons-material/CheckRounded'; import RemoveCircleOutlineRoundedIcon from '@mui/icons-material/RemoveCircleOutlineRounded'; export default function FileUpload( props: CardProps & { icon?: React.ReactElement; fileName: string; fileSize: string; progress: number; }, ) { const { icon, fileName, fileSize, progress, sx, ...other } = props; return (
{icon ?? }
{fileName} {fileSize} = 100 && { color: 'var(--joy-palette-success-solidBg)', }, ]} /> {progress}% {progress >= 100 ? (
) : ( )}
); }