How to deal when a friendship ends and there are kids involved

My friendship ended and she had children I was really close with. The friendship was toxic so there is no going back. I just don’t no how to cope with losing the relationship with her kids. Has anyone else been through this?