I'm torn. Stay at home mom or working mom

So ideally, I'd LOVE to be a stay at home mom for a year to take care of my baby girl, but I feel guilty for not being able to "contribute" my husband is on board but is a bit stressed about the money. I'm 36 weeks now and my job requires a 30 day notice before leaving due to a contract I signed. (although I get 6 weeks maternity leave) my plan is to take the 6 weeks off and return to work part time (currently full time) after she is born to feel it out, and if I cant do it, I'd choose to put in my notice. The only reasons I'm considering leaving are to raise my baby, and that it's not the most conducive to family life because I have to go in unexpectedly at times with little notice. How did you make your decision?