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

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

{displayNpub(pubkey, 16)}
); }