import { Box as MuiBox } from '@mui/material'; import { FC } from 'react'; import { ProgressBar } from '../Bars'; import FlexBox from '../FlexBox'; import { BodyText } from '../Text'; const UploadFileProgress: FC = (props) => { const { uploads } = props; return ( {Object.values(uploads).map(({ name, progress, uuid }) => ( :first-child': { minWidth: 100, overflow: 'hidden', overflowWrap: 'normal', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: { xs: '100%', md: 200 }, wordBreak: 'keep-all', }, '& > :last-child': { flexGrow: 1 }, }} > {name} ))} ); }; export default UploadFileProgress;