import type { ListFrontEndInterface } from './CommonType'

export interface OtherPersonListDataTypeInterface
    extends OtherPersonFormDataInterface {
    key: React.Key
}

export interface OtherPersonListInterface {
    otherPersonList: OtherPersonListDataTypeInterface[]
    otherPersonListCount: number
}

export interface OtherPersonFormDataInterface {
    clientCategoryName: string
    clientCategoryId: number | null
    otherPersonId: string
    activeStatus: string
    emailAddress: string
    contactName: string
    contactNumber: string
}

export interface OtherPersonFormStateInterface {
    categoryDropDownList: ListFrontEndInterface[]
}

export interface OtherPersonFormInterface
    extends OtherPersonFormStateInterface {
    onSave: (
        data: OtherPersonFormDataInterface,
        callBack: CallableFunction
    ) => void
    editData: OtherPersonFormDataInterface
}

export interface OtherPersonPayloadInterface {
    data: OtherPersonFormDataInterface[]
    noOfRecords: number
}
