diff --git a/components/file/file-list.tsx b/components/file/file-list.tsx index 643ca1d..80148af 100644 --- a/components/file/file-list.tsx +++ b/components/file/file-list.tsx @@ -240,26 +240,28 @@ export default function UserFileList({ -
- -

- {`${file.name}${getFileUrl(file.path)}`} -

- ${getFileUrl(file.path)}`} - /> -

- {`![${file.name}](${getFileUrl(file.path)})`} + {`[${file.name}](${getFileUrl(file.path)})`}

+ {file.mimeType.startsWith("image/") && ( +
+ +

+ {`${file.name}${getFileUrl(file.path)}`} +

+ ${getFileUrl(file.path)}`} + /> +
+ )} );