import {
  HeaderContainer
} from "./chunk-6ONU47UB.mjs";

// tmp-babel/messages/web/GroupChatCreate/Header/index.js
import { IconButton } from "@baseapp-frontend/design-system/components/web/buttons";
import { CheckMarkIcon, CloseIcon as DefaultCloseIcon } from "@baseapp-frontend/design-system/components/web/icons";
import { Typography } from "@mui/material";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
function _typeof(o) {
  "@babel/helpers - typeof";
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
    return typeof o2;
  } : function(o2) {
    return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  }, _typeof(o);
}
function ownKeys(e, r) {
  var t = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    r && (o = o.filter(function(r2) {
      return Object.getOwnPropertyDescriptor(e, r2).enumerable;
    })), t.push.apply(t, o);
  }
  return t;
}
function _objectSpread(e) {
  for (var r = 1; r < arguments.length; r++) {
    var t = null != arguments[r] ? arguments[r] : {};
    r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
      _defineProperty(e, r2, t[r2]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
      Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
    });
  }
  return e;
}
function _defineProperty(e, r, t) {
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
}
function _toPropertyKey(t) {
  var i = _toPrimitive(t, "string");
  return "symbol" == _typeof(i) ? i : i + "";
}
function _toPrimitive(t, r) {
  if ("object" != _typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != _typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}
var Header = function Header2(_ref) {
  var _ref$CloseIcon = _ref.CloseIcon, CloseIcon = _ref$CloseIcon === void 0 ? DefaultCloseIcon : _ref$CloseIcon, _ref$CreateIcon = _ref.CreateIcon, CreateIcon = _ref$CreateIcon === void 0 ? CheckMarkIcon : _ref$CreateIcon, isDisabled = _ref.isDisabled, onBackButtonClicked = _ref.onBackButtonClicked, onCreateButtonClicked = _ref.onCreateButtonClicked, _ref$title = _ref.title, title = _ref$title === void 0 ? "New Group" : _ref$title, _ref$titleProps = _ref.titleProps, titleProps = _ref$titleProps === void 0 ? {} : _ref$titleProps;
  return /* @__PURE__ */ _jsxs(HeaderContainer, {
    children: [/* @__PURE__ */ _jsx(IconButton, {
      onClick: onBackButtonClicked,
      "aria-label": "cancel group creation",
      children: /* @__PURE__ */ _jsx(CloseIcon, {
        sx: {
          fontSize: "24px"
        }
      })
    }), /* @__PURE__ */ _jsx(Typography, _objectSpread(_objectSpread({
      component: "span",
      variant: "subtitle2",
      sx: {
        textAlign: "center"
      }
    }, titleProps), {}, {
      children: title
    })), /* @__PURE__ */ _jsx(IconButton, {
      "aria-label": "Create group",
      disabled: isDisabled,
      onClick: onCreateButtonClicked,
      children: /* @__PURE__ */ _jsx(CreateIcon, {
        sx: {
          fontSize: "24px"
        }
      })
    })]
  });
};
var Header_default = Header;

export {
  Header_default
};
//# sourceMappingURL=chunk-PBQ34X5C.mjs.map