import { types } from "./actionTypes";

/*
          name: panel_names.PLAYER_PANEL,
          panelInfo: {
            modal: true //only for video player
            etc...
          },
*/
export const pushPanel = (panel, duplicatable = false) => ({
  type: types.PUSH_PANEL,
  payload: panel,
  duplicatable: duplicatable,
});

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

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

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