'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-2dc43e25.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-a283267f.js');
require('./index-7c018421.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-c7d6be85.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-3c8c757e.js');
require('./tslib.es6-5163dacf.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-bc8e923e.js');
require('@sendbird/chat/groupChannel');
require('./uuid-e879709a.js');
require('@sendbird/chat/message');
require('./consts-b08b4ca6.js');
require('./LocalizationContext-53fd4ae9.js');
require('./stringSet-42fa6280.js');
require('./utils-bafa76b3.js');
require('./index-db48f031.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-29719052.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-e49314a5.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-cfb37524.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-482bbe89.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-09e1cb5d.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-578986d2.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-178229c9.js');
require('./VoiceRecorder/context.js');
require('./lame.all.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./Channel/components/SuggestedMentionList.js');
require('./ChannelProvider-498847bc.js');
require('./compareIds-d78964c7.js');
require('./const-5e034408.js');
require('./const-6d262369.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-c8782eaf.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('react-dom/server');
require('./ui/MentionUserLabel.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-331d013f.js');
require('./index-160b94cd.js');
require('./index-5706b33b.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-965de260.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-e42edbd5.js');
require('./index-7630682a.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
