The only thing you should ever try to do when you’re very anxious or panicked is to comfort yourself. You cannot think clearly and shouldn’t make assumptions or decisions about your life in that state. Figure out what soothes you (a snack, a bath, talking to someone, doing something you really enjoy) and get yourself out that energy before you do anything else.