export default (store) => (dataElement) => {
  if ((dataElement === 'rightPanel' || dataElement === 'contentEditorPanel') && store.getRightPanelButtonDisabled) return false;
  store.dispatch('openElement')(dataElement);
};
