From b88211c5602b552d06081a91be9e61fa9574d3e0 Mon Sep 17 00:00:00 2001 From: Srujan Gurram Date: Sun, 26 Nov 2023 20:31:30 +0530 Subject: [PATCH] added image view on click and added disclaimer in code --- src/components/Sidebar/chat/FilePreviewBar.tsx | 10 ++++++++-- src/lib/getScreenshotImage.ts | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/Sidebar/chat/FilePreviewBar.tsx b/src/components/Sidebar/chat/FilePreviewBar.tsx index 72a02c2d..0e2b6b95 100644 --- a/src/components/Sidebar/chat/FilePreviewBar.tsx +++ b/src/components/Sidebar/chat/FilePreviewBar.tsx @@ -8,17 +8,23 @@ interface FilePreviewBarProps { const FilePreviewBar = ({ files, removeFile }: FilePreviewBarProps) => { if (files.length === 0) return null + return (
{files.map((file) => (
-
+ preview -
+ {removeFile && (