From c575119a90a028dd109434a4b8889adceac3df93 Mon Sep 17 00:00:00 2001
From: Melonai <einebeere@gmail.com>
Date: Fri, 4 Jun 2021 19:42:42 +0200
Subject: Signaling event processing

---
 assets/src/components/share/DataPicker.svelte | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 assets/src/components/share/DataPicker.svelte

(limited to 'assets/src/components/share/DataPicker.svelte')

diff --git a/assets/src/components/share/DataPicker.svelte b/assets/src/components/share/DataPicker.svelte
new file mode 100644
index 0000000..6e8dbd4
--- /dev/null
+++ b/assets/src/components/share/DataPicker.svelte
@@ -0,0 +1,16 @@
+<script lang="ts">
+    import data from "../../stores/data";
+
+    let value = "";
+
+    const submit = () => {
+        data.set(value);
+    };
+
+    // TODO: Accept data other than text.
+</script>
+
+<form on:submit|preventDefault={submit}>
+    <input type="text" bind:value />
+    <input type="submit" value="Submit" />
+</form>
-- 
cgit 1.4.1

