It was both the market and the leadership.
Dropbox failed to find a second act: they struggled to find PMF with their acquisitions and new products: Dropbox Passwords, Dropbox Paper, Carousel etc.
As Steve Jobs warned Drew Houston, Dropbox was "a feature, not a product"
Dropbox is a $6B product, just no second act