You don't have to do much at all with grieving friends other than just be with them and let them start to connect with their own feelings. Because what you've done is separated her from her feelings. That doesn't mean you never embrace somebody, but more often than not, you should just allow your friends to feel their feelings. It's a tremendous gift to befriend someone who is dying. Whenever you bring life and death together, it enhances life.
People come more fully alive.
The reason is that being with the dying gets you to focus on your end time, and on the time between now and your death. If you've done everything you've wanted to do and now you're on your deathbed, you'll die very peacefully. If you've got all this stuff you've wanted to do and you never gave yourself permission to do it, you're going to rant and rave and kick and scream going out into that dark night. Every dying person I've been with has called me to live my life more fully. The dying give you so much more than you can fathom.