'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-e7537e17.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-e6b1d2b7.js');
require('./index-3a44ff71.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-5fbd0305.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-325fff35.js');
require('./tslib.es6-6bb94011.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-a17b8ec5.js');
require('@sendbird/chat/groupChannel');
require('./uuid-7d07ac3f.js');
require('@sendbird/chat/message');
require('./consts-1f4e725d.js');
require('./LocalizationContext-2f07a939.js');
require('./stringSet-70ad7caf.js');
require('./utils-b1231f1d.js');
require('./index-3b8eefa2.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-0710a908.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-2129e959.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-729d402a.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-9cb4a8a1.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-c86c2884.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-6ed16caa.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-306e7c9a.js');
require('./VoiceRecorder/context.js');
require('./lame.all.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./Channel/components/SuggestedMentionList.js');
require('./ChannelProvider-fcbde734.js');
require('./compareIds-61f98cac.js');
require('./const-94a43f2e.js');
require('./const-20a4c9f8.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-44d71878.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('dompurify');
require('./consts-dae31183.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-27659174.js');
require('./index-f2f8ceeb.js');
require('./index-d44e0a55.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-8744ba42.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-ba209fe7.js');
require('./index-98939d51.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
