import useProfileDetails from 'hooks/useProfileDetails' import ProfileIcon from '../icons/ProfileIcon' const ProfileImage = ({ imageSize, placeholderSize, imageUrl, isOwnerProfile, }: { imageSize: string placeholderSize: string imageUrl?: string | null isOwnerProfile?: boolean }) => { const { data: profile } = useProfileDetails() return imageUrl || (isOwnerProfile && profile?.profile_image_url) ? ( ) : (
) } export default ProfileImage