Be a reliable friend
I have a close friend who has been struggling with depression for years. While at first it might seem easier to stay away from someone who is depressed, it makes a difference to them knowing that you're around and that you care. I try to remind her that I'm here, my door is open...and encourage her to take the steps she needs and challenge her when she doesn't. It's hard sometimes but better than letting go and wondering what if.