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