'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-3bb384e2.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-0ffaa79b.js');
require('./index-3a0cfa58.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-3a37e911.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-09eba4f3.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-b3f004b2.js');
require('@sendbird/chat/groupChannel');
require('./uuid-f2b80298.js');
require('@sendbird/chat/message');
require('./consts-eef8003b.js');
require('./LocalizationContext-9eda9144.js');
require('./stringSet-85aa5de9.js');
require('./utils-ecab64b8.js');
require('./index-4efb56bf.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-d9abfbc7.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-61e3f022.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-d15578f3.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-cf37de8c.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-c2408258.js');
require('./ui/EmojiReactions.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./useLongPress-e9001ef5.js');
require('./utils-6916bad3.js');
require('./ui/ContextMenu.js');
require('./ui/SortByRow.js');
require('./ui/BottomSheet.js');
require('./ui/UserListItem.js');
require('./ui/Avatar.js');
require('./ui/MutedAvatarOverlay.js');
require('./ui/Checkbox.js');
require('./ui/UserProfile.js');
require('./sendbirdSelectors.js');
require('./ui/Tooltip.js');
require('./ui/TooltipWrapper.js');
require('./Message/context.js');
require('./ui/VoiceMessageItemBody.js');
require('./ui/ProgressBar.js');
require('./VoicePlayer/useVoicePlayer.js');
require('./index-52171c35.js');
require('./VoiceRecorder/context.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./index-1acd76e0.js');
require('./index.module-b62197d5.js');
require('./tokenize-398af65e.js');
require('./ui/MentionLabel.js');
require('./ui/LinkLabel.js');
require('./ChannelProvider-223c2c69.js');
require('./const-85f621b6.js');
require('./compareIds-c82fb274.js');
require('./resolvedReplyType-9fb459d1.js');
require('./Channel/components/SuggestedMentionList.js');
require('./const-696b9e9c.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-27e6a830.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('dompurify');
require('./consts-049a4487.js');
require('./consts-a9db3fc2.js');
require('./consts-47c8eee1.js');
require('./index-a3741415.js');
require('./useDirtyGetMentions-0aa0bf3e.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-b52b48ec.js');
require('./index-39712fca.js');
require('./index-84bebbc3.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-f78f5829.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-93791046.js');
require('./index-89427d9d.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
