import { h, Host } from '@stencil/core';
export function wrapBase(content) {
  return (h(Host, null, content));
}
export function getWrapper(navigate, storage, theme, apiKimlik, appConfig, user, memberships, membership, viewId) {
  return (content) => wrapContent(navigate, storage, theme, apiKimlik, appConfig, user, memberships, membership, viewId, content);
}
export function wrapContent(navigate, storage, theme, apiKimlik, appConfig, user, memberships, membership, viewId, content) {
  if (appConfig.mainNavigation.aligned === 'top') {
    return wrapBase(h("div", { class: "container-fluid" },
      h("div", { class: "row" },
        h("div", { class: "col-sm-12" },
          h("div", { class: "top-menu-container" },
            h("dvn-app-top-menu", { appConfig: appConfig, membership: membership, memberships: memberships, user: user, viewId: viewId, navigate: navigate }))),
        h("div", { class: "col-sm-12" }, content))));
  }
  if (appConfig.mainNavigation.centered) {
    return wrapBase(h("div", null,
      h("div", { class: "container-fluid d-sm-block d-md-none" },
        h("div", { class: "row" },
          h("div", { class: "col-sm-12" },
            h("div", { class: "top-menu-container" },
              h("dvn-app-top-menu", { appConfig: appConfig, membership: membership, memberships: memberships, user: user, viewId: viewId, navigate: navigate, storage: storage }))))),
      h("div", { class: "container" },
        h("div", { class: "row" },
          h("div", { class: "col-md-4 col-lg-3 col-xl-3 d-none d-sm-none d-md-block" },
            h("div", { class: "left-menu-container" },
              h("dvn-app-left-menu", { apiKimlik: apiKimlik, navigate: navigate, storage: storage, appConfig: appConfig, membership: membership, memberships: memberships, user: user, viewId: viewId, theme: theme }))),
          h("div", { class: "col-sm-12 col-md-8 col-lg-9 col-xl-9" }, content)))));
  }
  return wrapBase(h("div", { class: "d-flex" },
    h("div", { class: "left-menu-container-leaned" },
      h("dvn-app-left-menu", { appConfig: appConfig, membership: membership, memberships: memberships, user: user, viewId: viewId, navigate: navigate, apiKimlik: apiKimlik, storage: storage, theme: theme })),
    h("div", { class: "flex-grow-1 pr-3" }, content)));
}
