<<<<<<< HEAD
export const publishNotification = notification => ({
  type: 'PUBLISH_NOTIFICATION',
  payload: {notification},
})

export const dismissNotification = id => ({
  type: 'DISMISS_NOTIFICATION',
  payload: {id},
})
=======
export function publishNotification(notification) {
  return {
    type: 'PUBLISH_NOTIFICATION',
    payload: {
      notification,
    },
  }
}

export function dismissNotification(id) {
  return {
    type: 'DISMISS_NOTIFICATION',
    payload: {id},
  }
}
>>>>>>> WIP Refactor Notifications

<<<<<<< HEAD
<<<<<<< HEAD
export const publishNotification = notification => ({
  type: 'PUBLISH_NOTIFICATION',
  payload: {notification},
})

export const dismissNotification = id => ({
  type: 'DISMISS_NOTIFICATION',
  payload: {id},
})
export const publishNotification = notification => ({
  type: 'PUBLISH_NOTIFICATION',
  payload: {notification},
})

export const dismissNotification = id => ({
  type: 'DISMISS_NOTIFICATION',
  payload: {id},
})
Transform old notification payload shape into new shape
Transform old notification payload shape into new shape

Will eventually have to refactor, but this makes it backwards
compatible for now
