How to Customize Cancel Text in Grafana ConfirmButton Component?

I’m currently working on a project where I’m using the ConfirmButton component in Grafana, and I’d like to customize the text for the cancel button. As of my last knowledge update in September 2021, it seems that the ConfirmButton component does not natively support a cancelText prop and it there is no other alternative.

I’ve tried including a cancelText prop in the component, but it doesn’t seem to work as expected. The cancel button still displays the default “Cancel” text. Here’s an example:

<ConfirmButton
  closeOnConfirm
  size="md"
  confirmText="Are you sure?"
  confirmVariant="secondary"
  cancelText="No, thanks" // I expected this to change the cancel button text
  onConfirm={() => {
    console.log('Action confirmed!');
  }}
>
  Click me
</ConfirmButton>

Then I look the grafana open source code: Grafana-ConfirmButton

You see that we no longer have the cancelText, and there is no other alternative.
Do someone have any ideas on how to solve it? I need to make changes to add i18n.

Thank you very much!

Cheers,
Turtles