summaryrefslogtreecommitdiff
path: root/front/src/components/post/wrappers/Nostr.tsx
blob: bdc5ba9c275577b26effb058ac5ad13351d14929 (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();
  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>;
}