'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-8ba81f66.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-5bc31321.js');
require('./index-6ca5c151.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-2648d24c.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-ada5a2bb.js');
require('./tslib.es6-259cb5ca.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-528fde56.js');
require('@sendbird/chat/groupChannel');
require('./uuid-4e015383.js');
require('@sendbird/chat/message');
require('./LocalizationContext-9a1e0d36.js');
require('./stringSet-2696d00d.js');
require('./utils-7a127b25.js');
require('./index-d714b895.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-b64c35a1.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-3d069920.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-7f516d81.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-b5c769e1.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-afb14420.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-4b850c2c.js');
require('./ui/EmojiReactions.js');
require('./ui/Tooltip.js');
require('./ui/TooltipWrapper.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./Channel/components/SuggestedMentionList.js');
require('./ChannelProvider-a765f8a9.js');
require('./compareIds-03d1c5fd.js');
require('./const-cd2f7184.js');
require('./const-5080a6f8.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.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('./ui/MessageStatus.js');
require('./ui/Loader.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('./index-aa5520c6.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;
  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
  })));
};

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