'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-5eafb9ef.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-81e19961.js');
require('./index-f5502150.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-cde95db8.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-32557b21.js');
require('./tslib.es6-d2ba1a6b.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-5edbb1b2.js');
require('@sendbird/chat/groupChannel');
require('./uuid-28e4a814.js');
require('@sendbird/chat/message');
require('./consts-f82aaae9.js');
require('./LocalizationContext-1f669b3c.js');
require('./stringSet-ddd351f0.js');
require('./utils-c67cf524.js');
require('./index-1b11bb85.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-b0c539a1.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-577c9a9b.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-130143d7.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-b32fce67.js');
require('./ui/Word.js');
require('./ui/LinkLabel.js');
require('./ui/MentionLabel.js');
require('./ui/ContextMenu.js');
require('./ui/SortByRow.js');
require('./ui/UserProfile.js');
require('./sendbirdSelectors.js');
require('./utils-602ab2fc.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-97cfc61b.js');
require('./ui/EmojiReactions.js');
require('./ui/Tooltip.js');
require('./ui/TooltipWrapper.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./ui/VoiceMessageItemBody.js');
require('./ui/ProgressBar.js');
require('./VoicePlayer/useVoicePlayer.js');
require('./index-26ff28a8.js');
require('./VoiceRecorder/context.js');
require('./lame.all.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./Channel/components/SuggestedMentionList.js');
require('./ChannelProvider-b1290e55.js');
require('./compareIds-32f97a73.js');
require('./const-77194948.js');
require('./const-fe838b59.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-3fb94919.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('react-dom/server');
require('./ui/MentionUserLabel.js');
require('dompurify');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-b911f8b3.js');
require('./index-c4869cdb.js');
require('./index-78e2bb42.js');
require('./ui/TextMessageItemBody.js');
require('./ui/OGMessageItemBody.js');
require('./ui/FileMessageItemBody.js');
require('./ui/ThumbnailMessageItemBody.js');
require('./ui/UnknownMessageItemBody.js');
require('date-fns');
require('./Thread/components/ThreadMessageInput.js');
require('./VoiceMessageInputWrapper-5bb0ed00.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-2c7774d0.js');
require('./index-cf139ee0.js');

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

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

var Thread = function (props) {
  var // props
  className = props.className,
      // ThreadProviderProps
  channelUrl = props.channelUrl,
      message = props.message,
      onHeaderActionClick = props.onHeaderActionClick,
      onMoveToParentMessage = props.onMoveToParentMessage,
      // ThreadUIProps
  renderHeader = props.renderHeader,
      renderParentMessageInfo = props.renderParentMessageInfo,
      renderMessage = props.renderMessage,
      renderMessageInput = props.renderMessageInput,
      renderCustomSeparator = props.renderCustomSeparator,
      renderParentMessageInfoPlaceholder = props.renderParentMessageInfoPlaceholder,
      renderThreadListPlaceHolder = props.renderThreadListPlaceHolder,
      renderFileUploadIcon = props.renderFileUploadIcon,
      renderVoiceMessageIcon = props.renderVoiceMessageIcon,
      renderSendMessageIcon = props.renderSendMessageIcon;
  return /*#__PURE__*/React__default["default"].createElement("div", {
    className: "sendbird-thread ".concat(className)
  }, /*#__PURE__*/React__default["default"].createElement(Thread_context.ThreadProvider, {
    channelUrl: channelUrl,
    message: message,
    onHeaderActionClick: onHeaderActionClick,
    onMoveToParentMessage: onMoveToParentMessage
  }, /*#__PURE__*/React__default["default"].createElement(Thread_components_ThreadUI, {
    renderHeader: renderHeader,
    renderParentMessageInfo: renderParentMessageInfo,
    renderMessage: renderMessage,
    renderMessageInput: renderMessageInput,
    renderCustomSeparator: renderCustomSeparator,
    renderParentMessageInfoPlaceholder: renderParentMessageInfoPlaceholder,
    renderThreadListPlaceHolder: renderThreadListPlaceHolder,
    renderFileUploadIcon: renderFileUploadIcon,
    renderVoiceMessageIcon: renderVoiceMessageIcon,
    renderSendMessageIcon: renderSendMessageIcon
  })));
};

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