const accountId = context.accountId; if (!accountId) { return "Please sign in with NEAR wallet"; } const note = Social.get(`${accountId}/notepad2/note2`); if (note === null) { return "Loading"; } State.init({ note: note || "" }); return ( <div> <div className="mb-2"> <h4>Notepad</h4> <textarea type="text" rows={5} className="form-control" value={state.note} onChange={(e) => State.update({ note: e.target.value })} /> </div> <CommitButton data={{ notepad2: { note2: state.note } }}> Save note </CommitButton> </div> );