const indexed = Social.index("knowledge", "darija"); if (!indexed) return "Loading ..."; // find the index that matches the indexed.value.uuid == props.knowledg const toQuery = indexed.find((item) => item.value.uuid == props.uuid); const known = Social.get("gagdiez.near/knowledge", toQuery.blockHeight); if (!known) return "Loading ..."; const { title, knowledge } = JSON.parse(known); const evaluator = props.evaluator; return <Widget src={evaluator} props={{ knowledge }} />;