// react-datepicker import DatePicker from "react-datepicker"; import "react-datepicker/dist/react-datepicker.css"; type Props = { renderAs?: "input" | "button"; value: Date | string | null | undefined; onChange: (arg: Date) => void; placeholder?: string; displayShortForm?: boolean; error?: boolean; className?: string; isClearable?: boolean; }; export const CustomDatePicker: React.FC = ({ renderAs = "button", value, onChange, placeholder = "Select date", displayShortForm = false, error = false, className = "", isClearable = true, }) => ( );