Anxiety medication

Catlyn
Before I got pregnant I took a medication for anxiety. When talking to my nurse I got off of it bc she told me it would be best for the baby. I have anxiety and panic attacks just sitting in my home. I plan to breastfeed but I'm not sure I can go without my medication for another year. What are yalls opinions on the matter?a