import { DayPickerProps } from './DayPicker' ; import { SelectMultipleEventHandler } from './EventHandlers' ; /** The props for the [[DayPicker]] component when using `mode="multiple"`. */ export interface DayPickerMultipleProps extends DayPickerProps { mode : 'multiple' ; /** The selected days. */ selected ? : Date [ ] ; /** Event fired when a days added or removed to the selection. */ onSelect ? : SelectMultipleEventHandler ; /** The minimum amount of days that can be selected. */ min ? : number ; /** The maximum amount of days that can be selected. */ max ? : number ; } /** Returns true when the props are of type [[DayPickerMultiple]]. */ export function isDayPickerMultiple ( props ) { return props . mode === 'multiple' ; }