'use strict';

var React = require('react');
var OpenChannel_components_OpenChannelUI = require('./OpenChannel/components/OpenChannelUI.js');
var OpenChannel_context = require('./OpenChannelProvider-946e4425.js');
require('./OpenChannel/components/OpenChannelInput.js');
require('./LocalizationContext-8cc9717d.js');
require('./stringSet-ce782136.js');
require('./index-d749c4c2.js');
require('./ui/MessageInput.js');
require('./_rollupPluginBabelHelpers-acf412a3.js');
require('prop-types');
require('./const-b19292fd.js');
require('./const-a3e169f4.js');
require('./ui/IconButton.js');
require('./ui/Button.js');
require('./index-35633fb6.js');
require('dompurify');
require('./consts-d04401ad.js');
require('./ui/Icon.js');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./index-a91b85d9.js');
require('./utils/message/getOutgoingMessageState.js');
require('./consts-016f07ac.js');
require('./consts-eb163887.js');
require('./tokenize-88b021e0.js');
require('./index.module-e3392caa.js');
require('./OpenChannel/components/FrozenChannelNotification.js');
require('./OpenChannel/components/OpenChannelHeader.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./uuid-1eceb0c8.js');
require('./MediaQueryContext-fad211ad.js');
require('./index-985a1afb.js');
require('./ui/Loader.js');
require('./OpenChannel/components/OpenChannelMessageList.js');
require('./index-bf8f9551.js');
require('./index-3fc4f7d7.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-d993c96b.js');
require('./sendbirdSelectors.js');
require('./topics-e24ef339.js');
require('./utils-5aa0708e.js');
require('./utils-68387d1c.js');
require('./index-88a450f3.js');
require('./useLongPress-cf56e64a.js');
require('./ui/OpenChannelAdminMessage.js');
require('./ui/OpenchannelOGMessage.js');
require('./ui/LinkLabel.js');
require('./index-db8116c0.js');
require('./Message/context.js');
require('./ui/MentionLabel.js');
require('./ui/OpenchannelThumbnailMessage.js');
require('./ui/OpenchannelFileMessage.js');
require('./ui/TextButton.js');
require('./color-5cfb41c7.js');
require('./ui/DateSeparator.js');
require('./ui/FileViewer.js');
require('./index-8029e07a.js');
require('./ui/Modal.js');
require('./index-f6c6728e.js');
require('./consts-9641990e.js');
require('./compareIds-784d9a4e.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
