import { Image } from "@shared/image"; import { DEFAULT_AVATAR } from "@stores/constants"; import { useProfile } from "@utils/hooks/useProfile"; import { shortenKey } from "@utils/shortenKey"; export function User({ pubkey }: { pubkey: string }) { const { user } = useProfile(pubkey); if (!user) { return (
); } return (
{pubkey}
{user.displayName || user.name} {user.nip05?.toLowerCase() || shortenKey(pubkey)}
); }