const admin = "gagdiez.near"; const question = { accountId: props.accountId, blockHeight: props.blockHeight }; const text = props.text || "Report"; if (question.accountId === undefined || question.blockHeight === undefined) { return; } const data = { index: { graph: JSON.stringify({ key: "poke", value: { poke: admin, }, }), notify: JSON.stringify({ key: admin, value: { type: "poke", question: question, }, }), }, }; return ( <CommitButton force className={`btn ${props.className}`} data={data}> <i class="bi bi-exclamation-circle me-1" /> <span>{text}</span> </CommitButton> );