import { useUserProfile } from "@snort/system-react"; import { System } from "index"; interface MentionProps { pubkey: string; relays?: string[]; } export function Mention({ pubkey, relays }: MentionProps) { const user = useUserProfile(System, pubkey); return ( {user?.name || pubkey} ); }