export interface Message {
    messageId: number
    userId: number
    fromUserImageUrl: string
    fromUserId: number
    fromUser: string
    date: string
    dateInfo: string
    messageTitle: string
    messgeContent: string
    markAsRead: number
    notificationReferenceType: number
    notificationReferenceId: number
}

export interface Data {
    totalUnreadNotificationCount: number
    unreadMessageCount: number
    unreadFeedCount: number
    unreadEventCount: number
    messageList: Message[]
    feedList: any[]
    eventList: any[]
}

export interface MessageListInterface {
    messageList: Data
}

export interface MessagePayloadInterface {
    data: Data | null
}

export interface viewallPayloadInterface {
    data: NotificationTableList[]
    noOfRecords: number
}
export interface MessageTable {
    flegId: number
    serviceId: number
    buttonId?: number
    notificationlist: NotificationTableList[]
    notificationlistCount: number
}
export interface NotificationState {
    notificationlist: NotificationTableList[]
    notificationlistCount: number
}

export interface MessageDetailsExpandViewInterface {
    messageDetailsData: NotificationTableList
}

export interface NotificationTableList {
    notificationId: number
    fromUser: string
    fromUserImageUrl: string
    notificationDate: string
    dateInfo: string
    title: string
    description: string
    notificationReferenceType: number
    notificationReferenceId: number
    markAsRead: number
}

export interface NotificationTableInterface extends NotificationTableList {
    key: React.Key
}
