From f0df4c7297a05bd592d8717b8997284c80fd0500 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Wed, 17 Sep 2025 15:56:00 +0700
Subject: argh

---
 front/src/components/post/PostWrapper.tsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 front/src/components/post/PostWrapper.tsx

(limited to 'front/src/components/post/PostWrapper.tsx')

diff --git a/front/src/components/post/PostWrapper.tsx b/front/src/components/post/PostWrapper.tsx
new file mode 100644
index 0000000..c4e754f
--- /dev/null
+++ b/front/src/components/post/PostWrapper.tsx
@@ -0,0 +1,14 @@
+import useLocalState from "@/state/state";
+import type { NostrPost, PostWrapper } from "@/types/nostrill";
+
+export default Post;
+function Post(pw: PostWrapper) {
+  if ("nostr" in pw) return <NostrPost post={pw.nostr} />;
+  else return <TrillPost post={pw.urbit.post} nostr={pw.urbit.nostr} />;
+}
+
+function NostrPost({ post, event, relay }: NostrPost) {
+  const { profiles } = useLocalState();
+  const profile = profiles.get(event.pubkey);
+  return <></>;
+}
-- 
cgit v1.2.3

