How did you move on and stop hurting so much?

I had a miscarriage 5 months ago and it is still very raw and hard to accept. I try to live normally and am a happy person but I do have my days and moments, more so when I am by myself.

A close friend recently told me she was pregnant, but very early stages.
We are close and we also work together, so I am now not only having to deal with my own heartbreak but watch her experience everything I should have been experiencing myself.

She was there for me through my miscarriage and knows I still hurt so I don't want to be selfish and horrible, but how do I support her and be happy for her when I am still hurting and my heart is still broken?