Nicotine Gum

Hi Rabbis,

If someone is quitting smoking and chews nicotine gum. Is one allowed to chew it on fast days?

It’s certainly recommended on the lower level fast days, but I’m not sure about Tisha Be’av and Yom Kippur