'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-a3aff32f.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-f15a815b.js');
require('./index-07e9d235.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-a0cd5b83.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-cf1a9aed.js');
require('./tslib.es6-565bcf25.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-a58ece2d.js');
require('@sendbird/chat/groupChannel');
require('./uuid-bea1faad.js');
require('@sendbird/chat/message');
require('./LocalizationContext-8497bc78.js');
require('./stringSet-4dd3f71e.js');
require('./utils-eaf70168.js');
require('./index-f058f9f9.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-46e89e67.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-e9d4a3c3.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-4225380b.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-a160e409.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-7818d87a.js');
require('./ui/Avatar.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-fbd6c374.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-5bf86efa.js');
require('./compareIds-76947865.js');
require('./const-d51e19f4.js');
require('./const-1d125f31.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-1e636630.js');
require('./ui/Loader.js');
require('./index-3cc13e66.js');
require('./index-d2f03436.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-d84834cb.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
