const accountId = props.accountId ?? context.accountId; if (!accountId) { return "Please connect your NEAR wallet :)"; } State.init({ description: state.description, }); const handleProposal = () => { if (!state.description) { return; } const gas = 200000000000000; const deposit = 100000000000000000000000; Near.call([ { contractName: "multi.sputnik-dao.near", methodName: "add_proposal", args: { proposal: { description: state.description, kind: "Vote", }, }, gas: gas, deposit: deposit, }, ]); }; const onChangeDescription = (description) => { State.update({ description, }); }; return ( <div className="mb-3"> Poll Question (yes / no): <input type="text" onChange={(e) => onChangeDescription(e.target.value)} /> <button className="btn btn-success mt-3" onClick={handleProposal}> Create Poll </button> </div> );