const path = props.path; const blockHeight = props.blockHeight; const parts = path.split("/"); const thing = JSON.parse(Social.get(path, blockHeight) || "null"); const type = thing.type; return ( <Widget src={"efiz.near/widget/MonacoEditor"} props={{ path, code: thing, language: "json", }} /> );