const accountId = props.accountId; if (!accountId) { return ""; } let followers = Social.keys(`*/graph/follow/${accountId}`, "final", { return_type: "BlockHeight", values_only: true, }); if (followers === null) { return "Loading"; } followers = Object.entries(followers || {}); followers.sort( (a, b) => b.graph.follow[accountId][1] - a.graph.follow[accountId][1] ); return ( <> {followers.map(([accountId]) => ( <div className="d-flex justify-content-between mb-3"> <div className="me-4"> <Widget src="mob.near/widget/Profile" props={{ accountId }} /> </div> <div> <Widget src="mob.near/widget/FollowButton" props={{ accountId }} /> </div> </div> ))} </> );