// @see: https://github.com/wojtekmaj/react-daterange-picker/issues/91 import { ArrowRightIcon, CalendarIcon } from "@heroicons/react/solid"; import "@wojtekmaj/react-daterange-picker/dist/DateRangePicker.css"; import PrimitiveDateRangePicker from "@wojtekmaj/react-daterange-picker/dist/entry.nostyle"; import React from "react"; import "react-calendar/dist/Calendar.css"; type Props = { startDate: Date; endDate: Date; onDatesChange?: ((arg: { startDate: Date; endDate: Date }) => void) | undefined; }; export const DateRangePicker = ({ startDate, endDate, onDatesChange }: Props) => { return ( } rangeDivider={} value={[startDate, endDate]} onChange={([startDate, endDate]) => { onDatesChange({ startDate, endDate }); }} /> ); };