import { Box, Divider, List, ListItem } from '@mui/material'; import * as prettyBytes from 'pretty-bytes'; import { DIVIDER } from '../../lib/consts/DEFAULT_THEME'; import { UPLOAD_FILE_TYPES } from '../../lib/consts/UPLOAD_FILE_TYPES'; import { BodyText } from '../Text'; type FileListProps = { filesOverview: FileOverviewMetadata[]; }; const FileList = ({ filesOverview }: FileListProps): JSX.Element => ( {filesOverview.map( ({ fileChecksum, fileName, fileSizeInBytes, fileType, fileUUID }) => { const fileSize: string = prettyBytes.default(fileSizeInBytes, { binary: true, }); return ( ); }, )} ); export default FileList;