const image = props.image; const className = props.className; const style = props.style; const alt = props.alt; function toUrl(image) { return ( (image.ipfs_cid ? `https://ipfs.near.social/ipfs/${image.ipfs_cid}` : image.url) || "https://thewiki.io/static/media/sasha_anon.6ba19561.png" ); } return image.nft ? ( <Widget src="mob.near/widget/NftImage" props={{ className, style, alt, nft: image.nft, thumbnail: true, }} /> ) : ( <img className={className} style={style} src={`https://i.near.social/thumbnail/${toUrl(image)["result"]}`} alt={alt} /> );