{"size": 366, "ext": "js", "max_stars_repo_path": "src/redux/actions/notification-actions.js", "max_stars_repo_name": "brionmario/cssi-fe", "max_stars_repo_stars_event_min_datetime": "2019-07-04T16:57:15.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-09T16:21:19.000Z", "max_issues_repo_path": "src/redux/actions/notification-actions.js", "max_issues_repo_name": "brionmario/cssi-fe", "max_issues_repo_issues_event_min_datetime": "2019-06-27T18:51:37.000Z", "max_issues_repo_issues_event_max_datetime": "2019-06-27T18:51:37.000Z", "max_forks_repo_path": "src/redux/actions/notification-actions.js", "max_forks_repo_name": "brionmario/cssi-fe", "max_forks_repo_forks_event_min_datetime": "2019-05-31T06:05:56.000Z", "max_forks_repo_forks_event_max_datetime": "2019-06-27T18:48:51.000Z"}
{"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 22.875, "max_line_length": 69, "alphanum_fraction": 0.693989071}
import { ADD_NOTIFICATION, INITIALIZE_NOTIFICATION } from '../types';

export const initialize = notificationSystem => (dispatch) => {
  dispatch({
    type: INITIALIZE_NOTIFICATION,
    payload: notificationSystem,
  });
};

export const addNotification = notification => (dispatch) => {
  dispatch({
    type: ADD_NOTIFICATION,
    payload: notification,
  });
};
