import { Action } from "redux" ; import { NotificationData } from "./reducers" ; /**
 * Notification action types
 */ export enum NotificationActionTypes { DISPLAY = "NOTIFICATION_DISPLAY" , DISMISS = "NOTIFICATION_DISMISS" } /**
 * Notification display action
 */ interface NotificationDisplayAction extends Action { type : NotificationActionTypes . DISPLAY ; data : NotificationData ; } /**
 * Notification dismiss action
 */ interface NotificationDismissAction extends Action { type : NotificationActionTypes . DISMISS ; } /**
 * Notification actions
 */ export type NotificationActions = NotificationDisplayAction | NotificationDismissAction ; param data return export const displayNotificationAction = ( data ) : NotificationDisplayAction => ( { type : NotificationActionTypes . DISPLAY , data } ) ; return export const dismissNotificationAction = ( ) : NotificationDismissAction => ( { type : NotificationActionTypes . DISMISS } ) ;