How do you tell someone struggling TTC that you’re pregnant?

I’m about a week away from announcing my pregnancy to everyone. My friend has been trying to have a baby for years and just recently went through IVF. She hasn’t told me what happened, but from some of the things I’ve noticed, it seems like it didn’t go well and she’s really torn up about it. I’m hoping she reaches out to me soon to talk about it, but I know she’s not ready at the moment. I have no idea how to tell her my news. I want to be sensitive to what she’s going through, but I need to figure out a way to tell her before everyone finds out and it’s all over social media. Any advice?