My best friend (trigger warning)

My best friend is in a strong depression and has a lot of anxiety, she’s been struggling for years and she’s always told me how she wants to kill herself and all the posible ways she could. I’ve been trying to help her, listening her vent, giving her advice and helping her stay strong, recently she’s been more impulsive on trying to kill herself so I recommend her a psychologist whom I’ve told him her story and he told me that they where gonna probably intern her in a psychological institution if she goes, either voluntarily or obligatory and I don’t know what to do about it because I want her to get better so bad but I don’t want her to think that she can’t tell me how she feels because I talked