from my experiences with friends, i gave the parents a 'congrats' card and wrote something special inside about their little one. i also gave them little baby gifts like i wouldve otherwise. my friends really appreciated that we had recognised and celebrated the birth of their child, instead of recognising its passing.
use your instinct and your heart hunni, they will know best.
hope it helps.
xxooxxoo