import { useProfile } from '@utils/hooks/useProfile'; import { displayNpub } from '@utils/shortenKey'; export function MentionPopupItem({ pubkey, embed }: { pubkey: string; embed?: string }) { const { status, user } = useProfile(pubkey, embed); if (status === 'pending') { return (
); } return (
{pubkey}
{user.display_name || user.displayName || user.name}
{displayNpub(pubkey, 16)}
); }