import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
  Text
} from "./chunk-YL4347CI.js";
import {
  require_react
} from "./chunk-TODKQSCF.js";
import "./chunk-AFPDHQYI.js";
import "./chunk-XZUGLEBK.js";
import "./chunk-SDLCFZRL.js";
import "./chunk-MTT3QXBC.js";
import {
  __toESM,
  init_esm_shims
} from "./chunk-EXLZF52D.js";

// src/components/WhoamiCommand.tsx
init_esm_shims();
var import_react2 = __toESM(require_react(), 1);

// src/components/Unauthenticated.tsx
init_esm_shims();
var import_react = __toESM(require_react(), 1);
var Unauthenticated = () => {
  return /* @__PURE__ */ import_react.default.createElement(Text, null, "You are not authenticated, log in by running `wix login`.");
};

// src/components/WhoamiCommand.tsx
var WhoamiCommand = ({ userInfo }) => {
  if (userInfo == null) {
    return /* @__PURE__ */ import_react2.default.createElement(Unauthenticated, null);
  }
  return /* @__PURE__ */ import_react2.default.createElement(Text, null, "Logged in as", " ", /* @__PURE__ */ import_react2.default.createElement(Text, { skin: "warning", bold: true }, userInfo.email));
};
export {
  WhoamiCommand
};
//# sourceMappingURL=WhoamiCommand-VIWNWJZO.js.map