summaryrefslogtreecommitdiff
path: root/ui/lib/components/CreateChannelForm.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/components/CreateChannelForm.svelte')
-rw-r--r--ui/lib/components/CreateChannelForm.svelte22
1 files changed, 0 insertions, 22 deletions
diff --git a/ui/lib/components/CreateChannelForm.svelte b/ui/lib/components/CreateChannelForm.svelte
deleted file mode 100644
index 471c2b7..0000000
--- a/ui/lib/components/CreateChannelForm.svelte
+++ /dev/null
@@ -1,22 +0,0 @@
-<script>
- let { createChannel = async (name) => {} } = $props();
-
- let name = $state('');
- let disabled = $state(false);
-
- async function onsubmit(event) {
- event.preventDefault();
- disabled = true;
- try {
- await createChannel(name);
- event.target.reset();
- } finally {
- disabled = false;
- }
- }
-</script>
-
-<form {onsubmit}>
- <input type="text" placeholder="create channel" bind:value={name} {disabled} />
- <button type="submit">&#x2795;</button>
-</form>