'use strict';

var React = require('react');
var OpenChannel_components_OpenChannelUI = require('./OpenChannel/components/OpenChannelUI.js');
var OpenChannel_context = require('./OpenChannelProvider-e8821f43.js');
require('./OpenChannel/components/OpenChannelInput.js');
require('./LocalizationContext-2f07a939.js');
require('./stringSet-70ad7caf.js');
require('./index-3a44ff71.js');
require('./ui/MessageInput.js');
require('./_rollupPluginBabelHelpers-325fff35.js');
require('prop-types');
require('./const-20a4c9f8.js');
require('./const-94a43f2e.js');
require('./ui/IconButton.js');
require('./tslib.es6-6bb94011.js');
require('./ui/Button.js');
require('./index-3b8eefa2.js');
require('dompurify');
require('./consts-dae31183.js');
require('./ui/Icon.js');
require('./index-9cb4a8a1.js');
require('./utils/message/getOutgoingMessageState.js');
require('./OpenChannel/components/FrozenChannelNotification.js');
require('./OpenChannel/components/OpenChannelHeader.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./uuid-7d07ac3f.js');
require('./MediaQueryContext-729d402a.js');
require('./index-98939d51.js');
require('./ui/Loader.js');
require('./OpenChannel/components/OpenChannelMessageList.js');
require('./index-d44e0a55.js');
require('./index-e6b1d2b7.js');
require('./OpenChannel/components/OpenChannelMessage.js');
require('./ui/OpenchannelUserMessage.js');
require('./ui/ContextMenu.js');
require('react-dom');
require('./ui/SortByRow.js');
require('./ui/UserProfile.js');
require('./UserProfileContext-5fbd0305.js');
require('./sendbirdSelectors.js');
require('./topics-a17b8ec5.js');
require('./utils-c86c2884.js');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./utils-2d3622fd.js');
require('./index-59b0ddb6.js');
require('./useLongPress-7fcddf32.js');
require('./ui/OpenChannelAdminMessage.js');
require('./ui/OpenchannelOGMessage.js');
require('./ui/LinkLabel.js');
require('./ui/Word.js');
require('./ui/MentionLabel.js');
require('./ui/OpenchannelThumbnailMessage.js');
require('./ui/OpenchannelFileMessage.js');
require('./ui/TextButton.js');
require('./color-6ed16caa.js');
require('./ui/DateSeparator.js');
require('./ui/FileViewer.js');
require('./index-2129e959.js');
require('./ui/Modal.js');
require('./compareIds-61f98cac.js');
require('@sendbird/chat');
require('@sendbird/chat/openChannel');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

var OpenChannel = function (props) {
  return /*#__PURE__*/React__default["default"].createElement(OpenChannel_context.OpenChannelProvider, {
    channelUrl: props === null || props === void 0 ? void 0 : props.channelUrl,
    isMessageGroupingEnabled: props === null || props === void 0 ? void 0 : props.isMessageGroupingEnabled,
    queries: props === null || props === void 0 ? void 0 : props.queries,
    messageLimit: props === null || props === void 0 ? void 0 : props.messageLimit,
    onBeforeSendUserMessage: props === null || props === void 0 ? void 0 : props.onBeforeSendUserMessage,
    onBeforeSendFileMessage: props === null || props === void 0 ? void 0 : props.onBeforeSendFileMessage,
    onChatHeaderActionClick: props === null || props === void 0 ? void 0 : props.onChatHeaderActionClick,
    disableUserProfile: props === null || props === void 0 ? void 0 : props.disableUserProfile,
    renderUserProfile: props === null || props === void 0 ? void 0 : props.renderUserProfile,
    onBackClick: props === null || props === void 0 ? void 0 : props.onBackClick
  }, /*#__PURE__*/React__default["default"].createElement(OpenChannel_components_OpenChannelUI, {
    renderMessage: props === null || props === void 0 ? void 0 : props.renderMessage,
    renderHeader: props === null || props === void 0 ? void 0 : props.renderHeader,
    renderInput: props === null || props === void 0 ? void 0 : props.renderInput,
    renderPlaceHolderEmptyList: props === null || props === void 0 ? void 0 : props.renderPlaceHolderEmptyList,
    renderPlaceHolderError: props === null || props === void 0 ? void 0 : props.renderPlaceHolderError,
    renderPlaceHolderLoading: props === null || props === void 0 ? void 0 : props.renderPlaceHolderLoading
  }));
};

module.exports = OpenChannel;
//# sourceMappingURL=OpenChannel.js.map
