const accountId = props.debugAccountId ?? context.accountId; const profile = Social.getr(`${accountId}/profile`); const name = profile.name; const image = profile.image; const editProfileButton = ( <div> <a className="btn btn-success" href="#/mob.near/widget/ProfileEditor"> Edit Profile </a> </div> ); if (!profile) { return ( <div className="alert alert-warning"> <p>Create Your Profile.</p> {editProfileButton} </div> ); } if (!name) { return ( <div className="alert alert-warning"> <p>Your profile is missing a name.</p> {editProfileButton} </div> ); } if ( !image.ipfs_cid && (!image.nft.contractId || !image.nft.tokenId) && !image.url ) { return ( <div className="alert alert-warning"> <p>Your profile is missing a picture.</p> {editProfileButton} </div> ); } return <></>;