Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

601 B
Raw Blame
import { requestAction } from '../core/actions';
import {
  REQUEST_NOTIFICATIONS,
  SET_NOTIFICATIONS,
  NOTIFICATIONS_SEEN,
  OUTAGE_NOTIFICATIONS_SEEN,
} from './constants';

export function requestNotifications(location) {
  return (dispatch) => requestAction(dispatch, REQUEST_NOTIFICATIONS, location);
}
export function setNotifications(array) {
  return {
    type: SET_NOTIFICATIONS,
    array,
  };
}
export function notificationsSeen() {
  return {
    type: NOTIFICATIONS_SEEN,
  };
}
export function outageNotificationsSeenAction() {
  return {
    type: OUTAGE_NOTIFICATIONS_SEEN,
  };
}