From d88d9df9573d33217862aaca63f74b8ee4b855e6 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 7 May 2026 23:54:22 +0200 Subject: [PATCH] Implement source picker selection logic --- src/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index fb5bdfe..abe9cd4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -229,6 +229,11 @@ export default function App() { await addFilesByPath(paths as string[], true); }; + const chooseSourcePicker = (mode: "files" | "folder") => { + setSourcePickerOpen(false); + void (mode === "files" ? onAddFiles() : onAddFolder()); + }; + const onAddWebsite = () => { const url = window.prompt("Enter a URL (starting with http:// or https://):"); if (!url) return;