const ACTIONS = {
  OPEN: "wait-message/OPEN",
  CLOSE: "wait-message/CLOSE"
};
const waitMessage = {
  open: (message = "loading...", delay = true) => ({
    type: ACTIONS.OPEN,
    payload: { message, delay }
  }),
  close: () => ({
    type: ACTIONS.CLOSE,
    payload: null
  })
};
export {
  ACTIONS,
  waitMessage
};
