summaryrefslogtreecommitdiff
path: root/front/src/components/post/PostWrapper.tsx
blob: c4e754fd982a1e91edecb10e2dc21abe5720f875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 <></>;
}