export interface DashboardNewsListDataTypeInterface
    extends DashboardNewsFormDataInterface {
    key: React.Key
}

export interface DashboardNewsListInterface {
    dashboardNewsList: DashboardNewsListDataTypeInterface[]
    dashboardNewsListCount: number
}

export interface DashboardNewsFormDataInterface {
    newsId: any
    title: string
    description: string
    newsURL: string
    newsDate: string
    activeStatus: string
}

export interface DashboardNewsFormInterface {
    onSave: (
        data: DashboardNewsFormDataInterface,
        callBack: CallableFunction
    ) => void
    editData: DashboardNewsFormDataInterface
    isLoadingModal: boolean
}

export interface DashboardNewsExpandViewInterface {
    dashboardNewsData: DashboardNewsListDataTypeInterface
}

export interface DashboardNewsPayloadInterface {
    data: DashboardNewsFormDataInterface[]
    noOfRecords: number
}
