Hospital bed rest

Has anyone been on hospital bed rest at 24 weeks? I came to the hospital Bc I was having contractions for two days and bleeding and they said I have an alarmingly short cervix. I don't know how long they're gonna make me stay here 😢
Update: my water broke last night and they immediately put me on magnesium and I got my second steroid shot. I'm not contracting which is good news. Please pray that I can keep baking these babies for another couple weeks!! Such a scary time for me and my husband.