import { Image } from '@shared/image'; import { useProfile } from '@utils/hooks/useProfile'; import { displayNpub } from '@utils/shortenKey'; export function UserImport({ pubkey }: { pubkey: string }) { const { status, user } = useProfile(pubkey); if (status === 'loading') { return (
); } return (
{pubkey}

{user?.name || user?.display_name}

{user?.nip05 || user?.username || displayNpub(pubkey, 16)}

); }