import { Box, Divider, List, ListItem } from '@mui/material'; import * as prettyBytes from 'pretty-bytes'; import { DIVIDER } from '../../lib/consts/DEFAULT_THEME'; import { BodyText } from '../Text'; const FileList = ({ list = [] }: { list: string[][] }): JSX.Element => { return ( {list.map((file) => { const fileUUID: string = file[0]; const fileName: string = file[1]; const fileSize: string = prettyBytes.default(parseInt(file[2], 10), { binary: true, }); const fileType: string = file[3]; const fileChecksum: string = file[4]; return ( ); })} ); }; export default FileList;