import type { DateRange } from "react-day-picker"

export interface DatePickerFormProps {
  name?: string
}

interface DatePickerProps {
  close: () => void
  startMonth?: Date
  hideHeader?: boolean
}

export interface DatePickerRangeProps extends DatePickerProps {
  selectedRange: DateRange | undefined
  handleOnSelect: (nextRange: DateRange | undefined, selectedDay: Date) => void
}

export interface DatePickerSingleProps extends DatePickerProps {
  selectedDate: Date
  handleOnSelect: (selected: Date) => void
}
