Fostering/adopting friends baby

My friend messaged me and said she’s thinking about giving me her baby. She’s been posting a lot of stuff saying she’s a bad mom. She’s not, she just needs to get her priorities in order and stay away from her toxic hopefully soon to be ex husband. She does so well, and then she gets back into that cycle of getting back with him, getting cheated on, having her belongings pawned for money for him to run around on her. He makes me sick, and he has absolutely no remorse for how he treats her. He’s lied to her. He’s beat her. She ended up putting him first, and losing custody of her son because she would let her husband have all the food benefits and rent money, to waste on video games and food. He trashed her home, and he’d just leave her when they were at their lowest to be with another girl. Its happened multiple times. I get she is feeling down, because she made those decisions over and over, but if she’d just get into therapy and maybe temporary ssi due to her health issues she’s having, she could do this all on her own. If she does decide to give me her daughter, how would that work? Do I need to take classes or anything?

*** oh, I think what she may have meant is if social services give her that option. I think they will be involved soon after baby is born any way. Also, her husband wants nothing to do with baby. Or his son. He doesn’t go to visitations or anything. 😞