Breastfeeding question!?

B❤👫👦👧🤰❤

I had developed mastitis still on antibiotics for it and now I am developing clogged ducts AGAIN! I'm in so much pain! It even kills me to nurse! Should I just switch to formula I can not keep living in this much pain!