From 8751ba26ebf7b7761b9e237f2bf3453623dd1018 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Mon, 6 Oct 2025 10:13:39 +0700
Subject: added frontend WS connection for demonstration purposes

---
 gui/src/components/post/wrappers/Nostr.tsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 gui/src/components/post/wrappers/Nostr.tsx

(limited to 'gui/src/components/post/wrappers/Nostr.tsx')

diff --git a/gui/src/components/post/wrappers/Nostr.tsx b/gui/src/components/post/wrappers/Nostr.tsx
new file mode 100644
index 0000000..2782fb8
--- /dev/null
+++ b/gui/src/components/post/wrappers/Nostr.tsx
@@ -0,0 +1,15 @@
+import type { NostrMetadata, NostrPost } from "@/types/nostrill";
+import Post from "../Post";
+import useLocalState from "@/state/state";
+
+export default NostrPost;
+function NostrPost({ data }: { data: NostrPost }) {
+  const { profiles } = useLocalState((s) => ({ profiles: s.profiles }));
+  const profile = profiles.get(data.event.pubkey);
+
+  return <Post poast={data.post} profile={profile} />;
+}
+
+export function NostrSnippet({ eventId, pubkey, relay }: NostrMetadata) {
+  return <div>wtf</div>;
+}
-- 
cgit v1.2.3

