My friend is possibly dying and I feel responsible

My friend just told me the doctor told her she’s not doing well and is in heart failure we both are very young 20 & 22 me being the oldest about two years ago at a party I tried drugs I don’t know if I can say the name on here but it’s white & you snort it anyway fast forward to last summer I finally told her about it about it and she was interested at first I was like no you don’t do it but she said she’d get it on her own so I let her try it with me cause I thought it was safer if we did it together cause I knew what it should be like we went on like that for a couple months using only like a gram a day together but then I got pregnant and stopped cold turkey but she kept going and started trying cheaper substances like ice we stopped talking much about halfway through my pregnancy cause we didn’t have much in common anymore but she was on my mind so I texted her and she told me how she has been in the hospital for a month and the doctor said she’s not doing well and might not make it through the year I feel so guilty