'use strict';

var React = require('react');
var OpenChannel_components_OpenChannelUI = require('./OpenChannel/components/OpenChannelUI.js');
var OpenChannel_context = require('./OpenChannelProvider-ea1d7b37.js');
require('./OpenChannel/components/OpenChannelInput.js');
require('./LocalizationContext-af96cf5f.js');
require('./stringSet-68748705.js');
require('./index-83d1d15e.js');
require('./ui/MessageInput.js');
require('./_rollupPluginBabelHelpers-c5955c81.js');
require('prop-types');
require('./const-ab0f6056.js');
require('./const-6691e574.js');
require('./ui/IconButton.js');
require('./ui/Button.js');
require('./index-73643285.js');
require('dompurify');
require('./consts-6ec77e9a.js');
require('./ui/Icon.js');
require('./index-f2146bae.js');
require('./utils/message/getOutgoingMessageState.js');
require('./consts-bc27beff.js');
require('./consts-a422c2f9.js');
require('./tokenize-d86ab0c7.js');
require('./OpenChannel/components/FrozenChannelNotification.js');
require('./OpenChannel/components/OpenChannelHeader.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./uuid-0b4ed44c.js');
require('./MediaQueryContext-8ec3f647.js');
require('./index-ff8ea47f.js');
require('./ui/Loader.js');
require('./OpenChannel/components/OpenChannelMessageList.js');
require('./index-4ee95667.js');
require('./index-f65677b1.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-f068b0ba.js');
require('./sendbirdSelectors.js');
require('./topics-825e5d42.js');
require('./utils-d5176360.js');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./utils-21326993.js');
require('./index-76afc309.js');
require('./useLongPress-d9deb354.js');
require('./ui/OpenChannelAdminMessage.js');
require('./ui/OpenchannelOGMessage.js');
require('./ui/LinkLabel.js');
require('./index-0b344bd7.js');
require('./index.module-9f5edc7b.js');
require('./Message/context.js');
require('./ui/MentionLabel.js');
require('./ui/OpenchannelThumbnailMessage.js');
require('./ui/OpenchannelFileMessage.js');
require('./ui/TextButton.js');
require('./color-afeb8dc2.js');
require('./ui/DateSeparator.js');
require('./ui/FileViewer.js');
require('./index-68c57136.js');
require('./ui/Modal.js');
require('./index-8049c2a3.js');
require('./consts-a5382bc1.js');
require('./compareIds-18b3b1d6.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);

const OpenChannel = 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
