I finished playing for 12 years in my late 20's after playing a good standard of cricket since my teens. Mainly just because I stopped enjoying it and wasn't committing, but only due to personal enjoyment in general towards the game rather than it being competitive. I generally enjoy sport less if there's nothing on it in terms of competition.
I filled the following 12 years playing golf, but then returned to cricket a few years ago and now really regret that time out of the game. I play 2s at the same club as before, two divs down from the ECB Prem. So not a bad standard but not as good as previously, as I'm just not 1s standard anymore. However it's still competitive, so i enjoy it.
I suppose what I'm saying is think about what it is you don't enjoy anymore. Is it the competitiveness? Or the team? League? Or the commitment? Some of these could be changed and you may start enjoying your league cricket again. If its other factors, you may need a break from it. Either way, I'd advise to try a few things before leaving the game too early. You may miss out on a lot in those years, which you can't get back.