It's gonna be weird no matter how you decide to work it out. All the above suggestions are great. Just being open and honest can go a long way. And she might have wild mood shifts. She might says she's fine with you and really mean it, but then 15 minutes later need to abruptly leave the room. Don't take it personally.

I had a miscarriage two weeks ago and my friend had her baby two days before I miscarried. Yes, it was weird and awkward when I went to see the baby and she asked if I'd heard the fetal heart beat at my last prenatal visit (which was the same day she delivered). But we got through the conversation okay.

Personally, I don't like it when people tiptoe around me.