import { Checkbox, FormControl, FormControlLabel, MenuItem, Select, TextField, } from '@mui/material'; import { UPLOAD_FILE_TYPES_ARRAY } from '../../lib/consts/UPLOAD_FILE_TYPES'; type FileInfoProps = { fileName: string; fileType: string; fileSyncAnvilList: { anvilName: string; anvilDescription: string; anvilUUID: string; isSync: boolean; }[]; }; const FileInfo = ({ fileName, fileType, fileSyncAnvilList, }: FileInfoProps): JSX.Element => { return ( {fileSyncAnvilList.map( ({ anvilName, anvilDescription, anvilUUID, isSync }) => { return ( } key={anvilUUID} label={`${anvilName}: ${anvilDescription}`} value={`${anvilUUID}-sync`} /> ); }, )} ); }; export default FileInfo;