import { type ListFrontEndInterface } from './CommonType'

export interface ArticleData {
    articleId: number
    articleGroupId: number
    articleGroupName: string
    articleName: string
    articleDescription: string
    icon: string
    iconType: number
    isPublic: number
    isSharedInSocialMedia: number
    isActive: string
    attachmentURL: string
    isPublishInNews: number
}

export interface ArticaltableList extends ArticleData {
    key: React.Key
}

export interface ArticalPayloadInteface {
    data: ArticleData[]
    noOfRecords: number
}

export interface ListofArticalStateInteerface {
    articalList: ArticleData[]
    articalListCount: number
}

export interface ArticalExpandViewInterface {
    articalExpandData: ArticaltableList
}

export interface ArticalListFormInterface extends ArticalStateInterface {
    onSave: (data: ArticleData, callBack: CallableFunction) => void
    editData: ArticleData
    isLoadingModal: boolean
}

export interface ArticalStateInterface {
    articalGroupList: ListFrontEndInterface[]
}
