import { Image } from "@shared/image"; import { DEFAULT_AVATAR } from "@stores/constants"; import { useProfile } from "@utils/hooks/useProfile"; export function Member({ pubkey }: { pubkey: string }) { const { user, isError, isLoading } = useProfile(pubkey); return ( <> {isError || isLoading ? (
) : ( {user?.pubkey )} ); }