import * as React from 'react';
import {FormGroupProps, FormGroup} from "../FormGroup";

export type DayRangePickerProps = {
    startDate?: number | object;
    endDate?: number | object;

    valueFormatter?: Function;
    onChange?: Function;
    numberOfMonths?: number;

    dayPickerProps?: object;
    inputProps?: object;
    ranges?: object;

    maxDate?: number | object;
    minDate?: number | object;
} & FormGroupProps & Partial<DayRangePickerDefaultProps>;

type DayRangePickerDefaultProps = {
    testAutomationId: string;
    valueFormatter: Function;
    dayPickerProps: object;
    numberOfMonths: number;
    inputProps: object;
};

export class DayRangePicker extends FormGroup<DayRangePickerProps & React.HTMLProps<DayRangePicker>> {}