import React__default from 'react';
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-4372fcec.js';
import 'prop-types';
import '../stringSet-eefbc798.js';

function AdminMessage(_ref) {
  var _message$isAdminMessa;
  let {
    className = '',
    message
  } = _ref;
  if (!(message !== null && message !== void 0 && message.isAdminMessage || message !== null && message !== void 0 && message.messageType) || !(message !== null && message !== void 0 && (_message$isAdminMessa = message.isAdminMessage) !== null && _message$isAdminMessa !== void 0 && _message$isAdminMessa.call(message)) || (message === null || message === void 0 ? void 0 : message.messageType) !== 'admin') {
    return null;
  }
  return /*#__PURE__*/React__default.createElement("div", {
    className: [...(Array.isArray(className) ? className : [className]), 'sendbird-admin-message'].join(' ')
  }, /*#__PURE__*/React__default.createElement(Label, {
    className: "sendbird-admin-message__text",
    type: LabelTypography.CAPTION_2,
    color: LabelColors.ONBACKGROUND_2
  }, message === null || message === void 0 ? void 0 : message.message));
}

export { AdminMessage as default };
//# sourceMappingURL=AdminMessage.js.map
