let { manageNotification, permission, showLimit } = props; const index = { action: "notify", key: context.accountId, options: { limit: showLimit ?? 10, order: "desc", subscribe: true, }, }; const renderItem = (item, i) => { if (i === 0) { Storage.set("lastBlockHeight", item.blockHeight); } const { accountId: initiator } = item; return ( <Widget src="near/widget/NearOrg.Notifications.Notification" key={`${initiator}-${item.blockHeight}-${i}`} props={{ initiator, ...item, manageNotification, permission }} /> ); }; return ( <Widget src="near/widget/IndexFeed" props={{ index, manual: !!showLimit, renderItem, nextLimit: 10, initialRenderLimit: showLimit ?? 10, moderatorAccount: "bosmod.near", }} /> );