import * as Avatar from '@radix-ui/react-avatar'; import { minidenticon } from 'minidenticons'; import { useMemo } from 'react'; import { useProfile } from '@utils/hooks/useProfile'; import { displayNpub } from '@utils/shortenKey'; export function MentionPopupItem({ pubkey, embed }: { pubkey: string; embed?: string }) { const { isLoading, user } = useProfile(pubkey, embed); const svgURI = useMemo( () => 'data:image/svg+xml;utf8,' + encodeURIComponent(minidenticon(pubkey, 90, 50)), [pubkey] ); if (isLoading) { return (