https://www.zurinstitute.com/blog-post/more-happiness-leads-to-better-cognition/
This is an interesting read about how depressive symptoms in early adulthood can lead to dementia in later life.
The takeaway is that mental health and cognitive health are related investments and when we protect them early on, the payoff extends well into our later years.