Who is the most important person in your life, your kids or you?
If you are not in a very healthy emotional and mental state, you need to take care of you, so you can make your kids a priority.
I know when I am not in a good state of mind, I am not a very good parent, and that's when I need to take of ME. Then when I have myself right, my daughter can become my priority.