"use strict";

import BottomTabs from "./BottomTabsNode.js";
import ComponentNode from "./ComponentNode.js";
import Stack from "./StackNode.js";
import SideMenuRootNode, { SideMenuLeftNode, SideMenuRightNode, SideMenuCenterNode } from "./SideMenu.js";
export default class LayoutNodeFactory {
  static create(layout, parentNode) {
    switch (layout.type) {
      case 'Component':
        return new ComponentNode(layout, parentNode);
      case 'Stack':
        return new Stack(layout, parentNode);
      case 'SideMenuRoot':
        return new SideMenuRootNode(layout, parentNode);
      case 'SideMenuLeft':
        return new SideMenuLeftNode(layout, parentNode);
      case 'SideMenuCenter':
        return new SideMenuCenterNode(layout, parentNode);
      case 'SideMenuRight':
        return new SideMenuRightNode(layout, parentNode);
      default: // TODO Undo
      case 'BottomTabs':
        return new BottomTabs(layout, parentNode);
    }
  }
}
//# sourceMappingURL=LayoutNodeFactory.js.map