From 595d4803e05138489d38d9792ae96a78804c1db5 Mon Sep 17 00:00:00 2001 From: starmorph Date: Tue, 20 May 2025 13:47:48 -0700 Subject: [PATCH] add pasting images --- src/components/thread/index.tsx | 2 ++ src/hooks/use-file-upload.tsx | 62 +++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/src/components/thread/index.tsx b/src/components/thread/index.tsx index 7025866..1332881 100644 --- a/src/components/thread/index.tsx +++ b/src/components/thread/index.tsx @@ -134,6 +134,7 @@ export function Thread() { removeBlock, resetBlocks, dragOver, + handlePaste, } = useFileUpload(); const [firstTokenReceived, setFirstTokenReceived] = useState(false); const isLargeScreen = useMediaQuery("(min-width: 1024px)"); @@ -466,6 +467,7 @@ export function Thread() {