import type { ListFrontEndInterface } from './CommonType'

export interface DepartmentListDataTypeInterface
    extends DepartmentFormDataInterface {
    key: React.Key
    isActive: string
    isDelete: string
}

export interface DepartmentListInterface {
    DepartmentList: DepartmentListDataTypeInterface[]
    DepartmentListCount: number
}

export interface DepartmentFormDataInterface {
    clientCategoryName: string
    clientCategoryId: number
    departmentName: string
    departmentId: string
    description: string
    activeStatus: string
}

export interface DepartmentFormStateInterface {
    categoryDropDownList: ListFrontEndInterface[]
}

export interface DepartmentFormInterface extends DepartmentFormStateInterface {
    onSave: (
        data: DepartmentFormDataInterface,
        callBack: CallableFunction
    ) => void
    editData: DepartmentFormDataInterface
    isLoadingModal: boolean
}

export interface DepartmentPayloadInterface {
    data: DepartmentFormDataInterface[]
    noOfRecords: number
}
