import { Image } from '@shared/image'; import { useProfile } from '@utils/hooks/useProfile'; import { displayNpub } from '@utils/shortenKey'; export function NotiUser({ pubkey }: { pubkey: string }) { const { status, user } = useProfile(pubkey); if (status === 'loading') { return (
); } return (
{pubkey} {user?.nip05 || user?.name || user?.display_name || displayNpub(pubkey, 16)}
); }