What am i supposed to do now?

My daughter was arrested tonight. She cut my sons girlfriend on the arm with a knife, I’m not yet sure of the details of what happened, I think she was trying to get the knife away from my daughter and got cut in the process. My heart is very heavy tonight, because its been a tough road for my baby girl. I’m scared for her. She recently moved out, but than was kicked out of the place (due to a mess up ) and she was so depressed over the fact that she was happy for once on her own. Now what am I going to except from the law? I begged the police to just take her to the hospital but they said that she would have to face jail. Im lost how to help her now. My only hope is that she will now receive some help because I couldn’t get her to take her meds and I had another week before I could get in to see her doctor.