const index = { action: "project", key: "nyc", options: { limit: 9, order: "desc", accountId: props.accounts, }, }; const renderItem = (a) => { if (a.value.type !== "md") { return; } return ( <div key={JSON.stringify(a)} className="my-4"> <Widget src="dev-support.near/widget/DevSupport.Question.Preview" props={{ accountId: a.accountId, blockHeight: a.blockHeight, }} /> </div> ); }; return <Widget src="mob.near/widget/IndexFeed" props={{ index, renderItem }} />;