'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-8b5092ee.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-942c3f15.js');
require('./index-e01cd4a9.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-80409a4d.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-41d3db2d.js');
require('./tslib.es6-f1d22d7f.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-33f5f434.js');
require('@sendbird/chat/groupChannel');
require('./uuid-2c11c530.js');
require('@sendbird/chat/message');
require('./LocalizationContext-caedb682.js');
require('./stringSet-af541fde.js');
require('./utils-b01aea7a.js');
require('./index-06816ee5.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-497e1a76.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-d47bc642.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-cdba25c1.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-476f089f.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-33e5dfc7.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-d7217651.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-beea5a02.js');
require('./compareIds-caa9f926.js');
require('./const-4235b5b5.js');
require('./const-4ba60f84.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('./index-bec34de9.js');
require('./ui/Loader.js');
require('./index-50984f15.js');
require('./index-ceb058fa.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-c6abe71b.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
