"use client";
import { jsx } from "react/jsx-runtime";
import { PortalProvider } from "./PortalContext.js";
import PortalShell from "./PortalShell.js";
function PortalLayoutShell({
  children,
  orgSlug,
  organizationName,
  tenantId,
  organizationId,
  authenticated,
  userName,
  userEmail,
  customerAuth
}) {
  return /* @__PURE__ */ jsx(
    PortalProvider,
    {
      orgSlug,
      initialAuth: customerAuth,
      initialTenant: {
        tenantId: tenantId ?? void 0,
        organizationId: organizationId ?? void 0,
        organizationName: organizationName ?? void 0
      },
      children: /* @__PURE__ */ jsx(
        PortalShell,
        {
          authenticated,
          enableEventBridge: authenticated,
          orgSlug,
          organizationName: organizationName ?? void 0,
          userName: userName ?? void 0,
          userEmail: userEmail ?? void 0,
          children
        }
      )
    }
  );
}
export {
  PortalLayoutShell
};
//# sourceMappingURL=PortalLayoutShell.js.map
