import { types } from "./actionTypes";

export const pushPanel = (panel) => ({
  type: types.PUSH_PANEL,
  payload: panel,
});

export const popPanel = (panelName) => ({
  type: types.POP_PANEL,
  payload: panelName,
});

export const updatePanel = (panelInfo) => ({
  type: types.UPDATE_PANEL,
  payload: panelInfo,
});

export const updateModalStatus = (status) => ({
  type: types.UPDATE_MODAL_STATUS,
  payload: status,
});

export const resetPanels = (panels) => ({
  type: types.RESET_PANELS,
  payload: panels,
});
