Post break up depression

We were dating for 10 months almost a year and I’m so sad I never think I’ll be the same. I almost ruined all my friendships and relationships with my family while I was dating him because I never made time for anyone else but him. It was toxic and he was very clingy, possessive and needy I had to leave but now I’m so sad and lonely I’m trying to rebuild my friendships but I feel so sad I don’t want to hang out or leave my room and I’m mad at myself for staying against my better judgment I don’t think I’m a good person for ignoring everyone that loved me for a man I just don’t want anyone to come into my life because I might hurt them unintentionally again like I did him and my friends and family. Has anyone else gone through post break up depression how did you survive?