Use TimeSeriesExplorer component in state pages.
Is your feature request related to a problem? Please describe.
Currently, home.js adds timeseries by adding the component <TimeSeriesExplorer>
which contains the header and controls to operate the timeseries graphs. However, this is not the case in state pages, we're adding <TimeSeries>
directly and rewriting the contents of <TimeSeriesExplorer>
again over here.
Describe the solution you'd like
Use <TimeSeriesExplorer>
in state pages as well and handling the input by passing relevant props. You can use css to disable the select dropdown from rendering (similar strategy to how map explorer is re-used in state pages).
Describe alternatives you've considered Open to more suggestions on abstractions if someone can do it elegantly, ideally would want to reduce code duplication.