onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>
                updateButtons(i, { query: e.target.value })
              }