'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-572574d7.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-f65677b1.js');
require('./index-83d1d15e.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-f068b0ba.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-c5955c81.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-825e5d42.js');
require('@sendbird/chat/groupChannel');
require('./uuid-0b4ed44c.js');
require('@sendbird/chat/message');
require('./consts-a5382bc1.js');
require('./LocalizationContext-af96cf5f.js');
require('./stringSet-68748705.js');
require('./utils-4b74ea64.js');
require('./index-73643285.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-15d1dcbd.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-68c57136.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-8ec3f647.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-f2146bae.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-afeb8dc2.js');
require('./ui/EmojiReactions.js');
require('./ui/Tooltip.js');
require('./ui/TooltipWrapper.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./ui/ContextMenu.js');
require('./ui/SortByRow.js');
require('./ui/VoiceMessageItemBody.js');
require('./ui/ProgressBar.js');
require('./VoicePlayer/useVoicePlayer.js');
require('./index-9d518988.js');
require('./VoiceRecorder/context.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./index-0b344bd7.js');
require('./index.module-9f5edc7b.js');
require('./tokenize-d86ab0c7.js');
require('./Message/context.js');
require('./ui/MentionLabel.js');
require('./ui/UserProfile.js');
require('./sendbirdSelectors.js');
require('./utils-d5176360.js');
require('./ui/Avatar.js');
require('./ui/LinkLabel.js');
require('./Channel/components/SuggestedMentionList.js');
require('./ChannelProvider-620bb354.js');
require('./compareIds-18b3b1d6.js');
require('./const-6691e574.js');
require('./const-ab0f6056.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-24accb8d.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('dompurify');
require('./consts-6ec77e9a.js');
require('./consts-bc27beff.js');
require('./consts-a422c2f9.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-900dd19f.js');
require('./index-6cb4a530.js');
require('./index-4ee95667.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-db7f2b72.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-c1de8d8f.js');
require('./index-ff8ea47f.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

const Thread = props => {
  const {
    // props
    className,
    // ThreadProviderProps
    channelUrl,
    message,
    onHeaderActionClick,
    onMoveToParentMessage,
    // ThreadUIProps
    renderHeader,
    renderParentMessageInfo,
    renderMessage,
    renderMessageInput,
    renderCustomSeparator,
    renderParentMessageInfoPlaceholder,
    renderThreadListPlaceHolder,
    renderFileUploadIcon,
    renderVoiceMessageIcon,
    renderSendMessageIcon
  } = props;
  return /*#__PURE__*/React__default["default"].createElement("div", {
    className: `sendbird-thread ${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
