My best friend has cancer

I'm so emotional at the moment, my best friend has had ecancer for 2years now but now it's spread and doesn't have alot of time 12-18months at best. I'm in shock. I'm trying to cope but it's hard.