UNPKG

tdesign-react

Version:
14 lines (13 loc) 469 B
import type { TdDatePickerProps, TdDateRangePickerProps } from '../type'; export interface disableDateProps { disableDate?: TdDatePickerProps['disableDate'] | TdDateRangePickerProps['disableDate']; format?: TdDatePickerProps['format']; mode?: TdDatePickerProps['mode']; start?: Date; end?: Date; } export default function useDisableDate(props: disableDateProps): { disableDate: (value: Date) => boolean; minDate: Date; maxDate: Date; };