"use strict";

import { LayoutStore } from "../Stores/LayoutStore.js";
export const switchTabByIndex = (bottomTabs, index) => {
  if (bottomTabs) {
    LayoutStore.getVisibleLayout().componentDidDisappear();
    LayoutStore.selectTabIndex(bottomTabs, index);
    LayoutStore.getVisibleLayout().componentDidAppear();
  }
};
export const openSideMenu = sideMenu => {
  LayoutStore.openSideMenu(sideMenu);
  LayoutStore.getVisibleLayout().componentDidAppear();
};
export const closeSideMenu = layout => {
  LayoutStore.getVisibleLayout().componentDidDisappear();
  LayoutStore.closeSideMenu(layout);
};
//# sourceMappingURL=layoutActions.js.map