I want to be able to repurpose DatePicker component from react-dates dynamically. This can be based on some configurable parameter.
e.g.
for Scenario 1, I want the DatePicker to act as a proper date picker (e.g. 2024-Jan-10)
for Scenario 2, I want the DatePicker to act as a Year and Month picker (e.g. 2024 Jan)
for Scenario 3, I want the DatePicker to act as a Year picker (e.g. 2023)
Does “react-dates” have support to achieve this?