// @flow
import type { StylableProps } from '../../mixins/themes';
import type { TestingProps } from '../../mixins/testing';

type ReactDayPickerDisableDatesConfig = {|
  before?: Date,
  after?: Date,
|};

export type DatepickerProps = {|
  ...StylableProps,
  ...TestingProps,
  label: string,
  onChange: (Date) => void,
  value?: Date,
  disabledDates?: Array<Date | ReactDayPickerDisableDatesConfig>,
  disableWeekends?: boolean,
  disablePastDates?: boolean,
|};
