TTC while suffering from anxiety

Anyone TTC and suffers from depression/anxiety? Do you take meds? I was on Xanax but then got pregnant and had a miscarriage. Very hesitant to get back on meds but I'm not sleeping well, tired all the time and not as productive at work, its ruining my life.