Implement source picker selection logic

This commit is contained in:
2026-05-07 23:54:22 +02:00
parent ca2a71b82a
commit d88d9df957

View File

@@ -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;