'use strict';

var React = require('react');
var OpenChannel_components_OpenChannelUI = require('./OpenChannel/components/OpenChannelUI.js');
var OpenChannel_context = require('./OpenChannelProvider-94eb45b4.js');
require('./OpenChannel/components/OpenChannelInput.js');
require('./LocalizationContext-b42fa07d.js');
require('./stringSet-4f30313f.js');
require('./index-97005534.js');
require('./ui/MessageInput.js');
require('./_rollupPluginBabelHelpers-3a9d1641.js');
require('prop-types');
require('./const-3ab3e45c.js');
require('./const-68cf2709.js');
require('./ui/IconButton.js');
require('./ui/Button.js');
require('./index-72e412f7.js');
require('dompurify');
require('./consts-bb2a67c7.js');
require('./ui/Icon.js');
require('./index-0b8a1074.js');
require('./utils/message/getOutgoingMessageState.js');
require('./consts-ad8ba629.js');
require('./consts-26d4668c.js');
require('./tokenize-e944d548.js');
require('./OpenChannel/components/FrozenChannelNotification.js');
require('./OpenChannel/components/OpenChannelHeader.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./uuid-5ab4f88b.js');
require('./MediaQueryContext-372b55a6.js');
require('./index-9d9e563e.js');
require('./ui/Loader.js');
require('./OpenChannel/components/OpenChannelMessageList.js');
require('./index-afada680.js');
require('./index-849f44b0.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-c87514d3.js');
require('./sendbirdSelectors.js');
require('./topics-3226c6ee.js');
require('./utils-146517a9.js');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./utils-dbaff0d0.js');
require('./index-f4f6d794.js');
require('./useLongPress-bf1e8eee.js');
require('./ui/OpenChannelAdminMessage.js');
require('./ui/OpenchannelOGMessage.js');
require('./ui/LinkLabel.js');
require('./index-1c18afa8.js');
require('./index.module-d2876b1c.js');
require('./Message/context.js');
require('./ui/MentionLabel.js');
require('./ui/OpenchannelThumbnailMessage.js');
require('./ui/OpenchannelFileMessage.js');
require('./ui/TextButton.js');
require('./color-a4e73e6f.js');
require('./ui/DateSeparator.js');
require('./ui/FileViewer.js');
require('./index-e8b83547.js');
require('./ui/Modal.js');
require('./index-c38404d2.js');
require('./consts-f71467c8.js');
require('./compareIds-a7029d6a.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
