const accountId = props.accountId ?? "*"; const items = Social.index("graph", "follow"); if (!items) { return "Loading"; } items.reverse(); const renderItem = (a) => ( <div key={JSON.stringify(a)} className="mb-2"> <Widget src="mob.near/widget/ProfileLine" props={{ accountId: a.accountId }} /> <span className="text-muted"> {a.value.type === "follow" ? "followed" : "unfollowed"} </span> <Widget src="mob.near/widget/ProfileLine" props={{ accountId: a.value.accountId, hideAccountId: true, tooltip: true, }} /> <span className="text-muted"> <Widget src="mob.near/widget/TimeAgo" props={{ blockHeight: a.blockHeight }} /> </span> </div> ); return ( <div className="px-2"> <Widget src="mob.near/widget/ItemFeed" props={{ items, renderItem }} /> </div> );