import { type ListFrontEndInterface } from './CommonType'

export interface HolidaysDetailsListDataTypeInterface
    extends HolidayDetailsFormDataInterface {
    key: React.Key
}

export interface HolidaysDetailsListStateInterface {
    holidaysDetailsList: HolidaysDetailsListDataTypeInterface[]
    holidaysDetailsListCount: number
}

export interface HolidaysDetailsListInterface
    extends HolidaysDetailsListStateInterface {
    categoryDropDownList: ListFrontEndInterface[]
    serviceDropDownList: ListFrontEndInterface[]
}

export interface HolidayDetailsFormDataInterface {
    companyHolidayId: string
    holidayName: string
    date: string
    description: string
    activeStatus: string
    countryName: string
    countryId: number
}

export interface HolidayDetailsFormDataStateInterface {
    countryList: ListFrontEndInterface[]
    parentCategoryList: ListFrontEndInterface[]
}

export interface HolidayDetailsFormInterface
    extends HolidayDetailsFormDataStateInterface {
    onSave: (
        data: HolidayDetailsFormDataInterface,
        callBack: CallableFunction
    ) => void
    editData: HolidayDetailsFormDataInterface
    isLoadingModal: boolean
}

export interface HolidaysPayloadInteface {
    data: HolidayDetailsFormDataInterface[]
    noOfRecords: number
}
