///
import { Dayjs } from 'dayjs';
import { ReactDatePickerProps } from 'react-datepicker';
export interface DatePickerProps extends ReactDatePickerProps {
}
export interface DatePickerRangeProps extends Omit {
onChange: (date: [Date, Date], event: React.SyntheticEvent) => void;
}
export interface DatePickerComponsition {
Range: React.FC;
Time: React.FC;
}
export type customInputParams = {
plain: {
hour: number;
minute: number;
};
formattedTime: {
hour: string | number;
minute: string | number;
};
};
export interface TimePickerProps {
value?: Dayjs;
onChange?: (time: Dayjs, timeString: string) => void;
customInput?: (value: customInputParams) => React.ReactNode;
isMinuteZero?: boolean;
disabled?: boolean;
}
export interface RangeDatePickerHeaderProps {
monthDate: Date;
customHeaderCount: number;
decreaseMonth: () => void;
increaseMonth: () => void;
}