"use strict";Object.defineProperty(exports, "__esModule", {value: true});// tmp-babel/messages/web/ChatRoom/ChatRoomHeader/ChatRoomOptions/index.js
var _material = require('@mui/material');
var _jsxruntime = require('react/jsx-runtime');
var ChatRoomOptions = function ChatRoomOptions2(_ref) {
  var isArchived = _ref.isArchived, isArchiveMutationInFlight = _ref.isArchiveMutationInFlight, isGroup = _ref.isGroup, onArchiveClicked = _ref.onArchiveClicked, onDetailsClicked = _ref.onDetailsClicked, onLeaveClicked = _ref.onLeaveClicked;
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.MenuList, {
    children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.MenuItem, {
      onClick: onArchiveClicked,
      disabled: isArchiveMutationInFlight,
      children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
        variant: "body2",
        children: isArchived ? "Unarchive Chat" : "Archive Chat"
      })
    }), isGroup ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.MenuItem, {
        onClick: onDetailsClicked,
        children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
          variant: "body2",
          children: "Group Details"
        })
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.MenuItem, {
        onClick: onLeaveClicked,
        children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
          variant: "body2",
          color: "error",
          children: "Leave Group"
        })
      })]
    }) : null]
  });
};
var ChatRoomOptions_default = ChatRoomOptions;



exports.ChatRoomOptions_default = ChatRoomOptions_default;
//# sourceMappingURL=chunk-BJ5FVFOR.js.map