summaryrefslogtreecommitdiff
path: root/front/src/components/feed/NostrIcon.tsx
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-09-17 15:56:00 +0700
committerpolwex <polwex@sortug.com>2025-09-17 15:56:00 +0700
commitf0df4c7297a05bd592d8717b8997284c80fd0500 (patch)
tree2d38e079e971a2e98e78a0f7a3104f2bd3c5daeb /front/src/components/feed/NostrIcon.tsx
parent387af8fc1603805b02ce03f8adba4fa73a954f7c (diff)
argh
Diffstat (limited to 'front/src/components/feed/NostrIcon.tsx')
-rw-r--r--front/src/components/feed/NostrIcon.tsx22
1 files changed, 0 insertions, 22 deletions
diff --git a/front/src/components/feed/NostrIcon.tsx b/front/src/components/feed/NostrIcon.tsx
deleted file mode 100644
index 0c368fb..0000000
--- a/front/src/components/feed/NostrIcon.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import nostrIcon from "@/assets/icons/nostr.svg";
-import useLocalState from "@/state/state";
-import toast from "react-hot-toast";
-import type { Poast } from "@/types/trill";
-export default function ({ poast }: { poast: Poast }) {
- const { relays, api, keys } = useLocalState();
-
- async function sendToRelay(e: React.MouseEvent) {
- e.stopPropagation();
- //
- const urls = Object.keys(relays);
- await api!.relayPost(poast.host, poast.id, urls);
- toast.success("Post relayed");
- }
- // TODO round up all helpers
-
- return (
- <div className="icon" role="link" onMouseUp={sendToRelay}>
- <img role="link" src={nostrIcon} title="repost" />
- </div>
- );
-}