feat: render pubkey list mentions

This commit is contained in:
2023-05-22 11:32:12 +01:00
parent d19991be6c
commit c2138287fa
6 changed files with 24 additions and 7 deletions

View File

@ -0,0 +1,8 @@
import { RawEvent } from "@snort/nostr";
import { dedupe } from "Util";
import FollowListBase from "./FollowListBase";
export default function PubkeyList({ ev, className }: { ev: RawEvent; className?: string }) {
const ids = dedupe(ev.tags.filter(a => a[0] === "p").map(a => a[1]));
return <FollowListBase pubkeys={ids} showAbout={true} className={className} />;
}