pregnant and on an anti depressant... am I a bad mom?

Mackenzie
I've been on lexapro for a couple of years for panic attacks and depression. My doctor explained to me that there are not many studies showing whether or not there are effects on a baby. The panic attacks make me have seizures and the depression causes me to not eat or want to go to work. I feel like a bad mom that I can't just tough it out, but I'm so scared of getting back to a mentally unhealthy place while pregnant. :(