// tmp-babel/messages/web/ChatRoom/ChatRoomHeader/ChatRoomOptions/index.js
import { MenuItem, MenuList, Typography } from "@mui/material";
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "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__ */ _jsxs(MenuList, {
    children: [/* @__PURE__ */ _jsx(MenuItem, {
      onClick: onArchiveClicked,
      disabled: isArchiveMutationInFlight,
      children: /* @__PURE__ */ _jsx(Typography, {
        variant: "body2",
        children: isArchived ? "Unarchive Chat" : "Archive Chat"
      })
    }), isGroup ? /* @__PURE__ */ _jsxs(_Fragment, {
      children: [/* @__PURE__ */ _jsx(MenuItem, {
        onClick: onDetailsClicked,
        children: /* @__PURE__ */ _jsx(Typography, {
          variant: "body2",
          children: "Group Details"
        })
      }), /* @__PURE__ */ _jsx(MenuItem, {
        onClick: onLeaveClicked,
        children: /* @__PURE__ */ _jsx(Typography, {
          variant: "body2",
          color: "error",
          children: "Leave Group"
        })
      })]
    }) : null]
  });
};
var ChatRoomOptions_default = ChatRoomOptions;

export {
  ChatRoomOptions_default
};
//# sourceMappingURL=chunk-HQZYX45A.mjs.map