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