summaryrefslogtreecommitdiff
path: root/gui/src/components/composer
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/components/composer')
-rw-r--r--gui/src/components/composer/Composer.tsx14
1 files changed, 0 insertions, 14 deletions
diff --git a/gui/src/components/composer/Composer.tsx b/gui/src/components/composer/Composer.tsx
index 81d0358..8b7e343 100644
--- a/gui/src/components/composer/Composer.tsx
+++ b/gui/src/components/composer/Composer.tsx
@@ -1,5 +1,4 @@
import useLocalState from "@/state/state";
-import type { Poast } from "@/types/trill";
import Sigil from "@/components/Sigil";
import { useState, useEffect, useRef, type FormEvent } from "react";
import Snippets, { ReplySnippet } from "./Snippets";
@@ -42,19 +41,6 @@ function Composer({ isAnon }: { isAnon?: boolean }) {
async function poast(e: FormEvent<HTMLFormElement>) {
e.preventDefault();
// TODO
- // const parent = replying ? replying : null;
- // const tokens = tokenize(input);
- // const post: SentPoast = {
- // host: parent ? parent.host : our,
- // author: our,
- // thread: parent ? parent.thread : null,
- // parent: parent ? parent.id : null,
- // contents: input,
- // read: openLock,
- // write: openLock,
- // tags: input.match(HASHTAGS_REGEX) || [],
- // };
- // TODO make it user choosable
setLoading(true);
const res =