How long have you been at this job?
Do you have personal hobbies or projects you like to work on?
These are all questions you need to ask yourself.
We often tend to rely on our jobs to push our intellectual curiosity and provide satisfaction by challenging us to greater heights. Unfortunately, most jobs become mundane after the first project goes live. Hence why most developers average 2 years or less at a job. It's our failure to communicate and set expectations with our superiors, that drives us to the brink, isolates us, and ultimately makes us quit. Alas, the grass ain't always greener and more often than not, you find yourself in the same situation.
If there's one thing I've learned from all of the previous employers I've left, it's that the anxiety build up leading up to handing in that 2 weeks notice could have been entirely avoided, had we just had an open conversation of where we want to be in our careers. Communication is key.
Before you decide to quit, I'd say take a long vacation. 2 weeks minimum, or a month if permissible. Make sure to completely remove yourself from your current environment (go to another country).
Doing so will recharge your batteries, help disconnect you from the daily grind, and realign your thoughts on what's important. A crystal clear view of what path to take. After you come back, whether you've decided to stay or leave your current employer, you will feel 100 times more confident in the decision you make.
Sounds like burnout and anxiety has gotten the best of you right now.
Relax. Take a deep breath. Go on a long vacation. Make a decision.