Panic attack/depression

This past Sunday I had the worst scare of my life I thought I might die and told my spouse to take me to the ER I felt hopeless and as it turned out I had a panic attack.. they told me to follow up with my doctor and I did today and she gave me some pills to help me sleep and an appointment with a counselor this coming Thursday

She said I have clinical depression and probably a mood disorder

All this a year after having a baby not sure how to react or what to do I really don’t want or take any pills since I have a one year old to take care of but also I’m terrified to have another episode like the one i had :/ help