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