const accountId = props.accountId ?? context.accountId; const className = props.className ?? "profile-image d-inline-block"; const style = props.style ?? { width: "3em", height: "3em" }; const profile = props.profile ?? Social.getr(`${accountId}/profile`); const name = profile.name || "No-name profile"; const image = profile.image; const title = `${name} @${accountId}`; return ( <div className={className} title={title} style={style}> <Widget src="root.near/widget/ProfilePic" props={{ image, alt: title, className: "rounded w-100 h-100", style: { objectFit: "cover" }, }} /> </div> );