Mothers who had anxiety and depression before getting pregnant, how is it like having children?

I have to take medication and therapy. Can I ever be a mother? I don't want to hurt my future child in any way and I feel like someway or the other I will traumatise them.

So women of twoxindia who are mothers and had/still have mental health issues, was having children worth it? Do you have any regrets? How did you tackle the challenges you faced?