From e4915154c6bb71b3d0fb8da6e971783156548b8e Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Sat, 23 Jul 2022 23:38:33 -0500
Subject: Restructure file organization

---
 src/components/helpers/UploadButton.svelte | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src/components/helpers/UploadButton.svelte

(limited to 'src/components/helpers/UploadButton.svelte')

diff --git a/src/components/helpers/UploadButton.svelte b/src/components/helpers/UploadButton.svelte
new file mode 100644
index 0000000..a592a25
--- /dev/null
+++ b/src/components/helpers/UploadButton.svelte
@@ -0,0 +1,11 @@
+<script lang="ts">
+  export let accept = "";
+  export let multiple = false;
+  export let files: FileList | null = null;
+  export let color = "";
+</script>
+
+<label class="btn {color}">
+  Upload
+  <input type="file" {accept} {multiple} bind:files hidden />
+</label>
-- 
cgit v1.2.3

