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/Requests.svelte | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 assets/src/components/share/Requests.svelte

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

diff --git a/assets/src/components/share/Requests.svelte b/assets/src/components/share/Requests.svelte
new file mode 100644
index 0000000..509d7be
--- /dev/null
+++ b/assets/src/components/share/Requests.svelte
@@ -0,0 +1,20 @@
+<script lang="ts">
+    import { getOwnToken, start, Type } from "../../network/channel/connection";
+
+    import requests from "../../stores/requests";
+    import Request from "./Request.svelte";
+
+    const startPromise = start(Type.SHARE);
+
+    // TODO: Switch to store-based state updates.
+</script>
+
+{#await startPromise}
+    <h3>Fetching token...</h3>
+{:then}
+    <h3>Your token is <b>{getOwnToken()}</b>.</h3>
+
+    {#each $requests as request}
+        <Request token={request} />
+    {/each}
+{/await}
-- 
cgit 1.4.1

