import {Component} from 'react'
import {createDelayActionQueue} from '@befe/brick-utils'
import {
    DatePickerProps,
    DatePickerState,
} from '../inner-comps/create-inner-date-picker'
import {
    RangePickerProps,
    RangePickerState,
} from '../inner-comps/inner-range-picker'

export type TypeTimeout = ReturnType<typeof setTimeout>

export type PartialPanelState = Partial<DatePickerState & RangePickerState>
export type PanelComp = Component<DatePickerProps | RangePickerProps, PartialPanelState> & {
    actionQueue: ReturnType<typeof createDelayActionQueue>
}
