import { clsx } from 'clsx';
import { CloseButton } from '../common/closeButton/CloseButton.mjs';
import FlowHeader from '../common/flowHeader/FlowHeader.mjs';
import Logo from '../logo/Logo.mjs';
import { jsx, jsxs } from 'react/jsx-runtime';
import { Size } from '../common/propsValues/size.mjs';

const defaultLogo = /*#__PURE__*/jsx(Logo, {});
function OverlayHeader({
  avatar,
  onClose,
  logo = defaultLogo
}) {
  const closeButton = onClose && /*#__PURE__*/jsx(CloseButton, {
    size: Size.LARGE,
    onClick: onClose
  });
  return /*#__PURE__*/jsx("div", {
    className: "np-overlay-header d-flex justify-content-center",
    children: /*#__PURE__*/jsx(FlowHeader, {
      className: "np-overlay-header__content p-a-3",
      leftContent: logo,
      rightContent: /*#__PURE__*/jsxs("div", {
        className: clsx('d-flex', 'align-items-center', 'order-2'),
        children: [avatar, avatar && closeButton && /*#__PURE__*/jsx("span", {
          className: clsx('m-x-1')
        }), closeButton]
      })
    })
  });
}

export { OverlayHeader as default };
//# sourceMappingURL=OverlayHeader.mjs.map
