"use strict";Object.defineProperty(exports, "__esModule", {value: true});// tmp-babel/navigations/web/Header/AccountMenu/AccountPopover/CurrentUser/index.js
var _authentication = require('@baseapp-frontend/authentication');
var _utils = require('@baseapp-frontend/utils');
var _material = require('@mui/material');
var _jsxruntime = require('react/jsx-runtime');
var CurrentUser = function CurrentUser2() {
  var _useJWTUser = _authentication.useJWTUser.call(void 0, ), user = _useJWTUser.user;
  if (!user) {
    return null;
  }
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, {
    sx: {
      m: 1.5,
      px: 1,
      py: 0.75
    },
    children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
      component: "p",
      variant: "subtitle2",
      noWrap: true,
      children: _utils.joinWithSeparator.call(void 0, [user === null || user === void 0 ? void 0 : user.firstName, user === null || user === void 0 ? void 0 : user.lastName])
    }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
      variant: "body2",
      sx: {
        color: "text.secondary"
      },
      noWrap: true,
      children: user === null || user === void 0 ? void 0 : user.email
    })]
  });
};
var CurrentUser_default = CurrentUser;



exports.CurrentUser_default = CurrentUser_default;
//# sourceMappingURL=chunk-GDMG5CKW.js.map