import {
    TypeActionLink,
    TypeDatePickerMode,
} from '../inner-comps/prop-types'

/**
 *
 * @param quickActions
 */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function isActionList(quickActions: any): quickActions is TypeActionLink[] {
    return !!(quickActions) && (quickActions instanceof Array)
}

export function getPickerMode(mode?: TypeDatePickerMode) {
    return mode || 'date'
}
