My friend miscarried

My friend miscarried a while back and only told me today. We’re both 16, and I don’t know what to say to her without either sounding like I’m joking or being condescending.

I need advice.