After getting fired from job

I feel useless in life now. What do I do now? I’ve never had this happen before until now and I’m 30 years old. How do you deal with this kind of thing?