import { Action } from '@ngrx/store';
import { NotificationMod } from '../auth/UnifiedNotification.service';

export const UPDATEE = 'UPDATEE';

export interface ExtraAct extends Action
{
value:NotificationMod;

}
export function unifiedNotificationReducer(state: NotificationMod = <NotificationMod>{}, action: ExtraAct) {
  switch (action.type) {
    case UPDATEE:
    //  alert('update:'+action.value);
      return action.value;
    default:
      return state;
  }
}
