If able to, take two to three weeks to decompress. During that time, visit local attractions, take day trips, hike with long-lost friends, and resume hobbies. Do whatever you need to do to feel like yourself again, but have a timeline in mind for when to get serious about planning your next move.
If there isn’t a new job lined up, I’m assuming you’re: planning to find a new job; starting a new business; spending some time traveling or sinking into a deep project like writing a book; or opting to spend time as a caregiver for a child or other loved one.
Start a spreadsheet of key contacts to record email addresses and phone numbers and (yes, really) mailing addresses. While you’re at it, ask people you respect how you could have done your job better. This is tough, I know, but necessary for growth.