losing a baby

Leah
how do you comfort a friend who lost their baby? both of my close friends just lost theirs. :/ one was ectopic and the other was miscarried at 6 weeks. i'm 18 weeks so i don't talk about my pregnancy with them, but don't know how to comfort their loss.