import { Card, Text, Image, Button, Group } from '@mantine/core'; const FileView = ({ file, onSelect, onDelete, ...props }) => { // const deleteHandler = async () => { // try { // await API.deleteFile(file.id); // onDelete(file.id); // } catch (error) { // console.log(error); // } // }; return ( {file?.name {file?.name ?? 'File Name'} {!props.noSelect ? ( ) : ( <> )} ); }; export default FileView;