'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-bac1bea8.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-892b4b7f.js');
require('./index-88e8fdfa.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-9d843d68.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-21ae158b.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-373d2156.js');
require('@sendbird/chat/groupChannel');
require('./uuid-dee74248.js');
require('@sendbird/chat/message');
require('./consts-900e72b9.js');
require('./LocalizationContext-44d2f61b.js');
require('./stringSet-7aebf034.js');
require('./utils-6a43371d.js');
require('./index-2bfd366f.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-81daa8a0.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-0a446cca.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-5d311a86.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-1b3c69da.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-0c04efbd.js');
require('./ui/EmojiReactions.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./useLongPress-83b6a2f1.js');
require('./utils-6a748c02.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-50c4a83b.js');
require('./VoiceRecorder/context.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./index-8cd9b25d.js');
require('./index.module-5a6a79b6.js');
require('./tokenize-44139f1e.js');
require('./ui/MentionLabel.js');
require('./ui/LinkLabel.js');
require('./ChannelProvider-a05d259f.js');
require('./const-1ea78727.js');
require('./compareIds-a846891d.js');
require('./resolvedReplyType-14fa0f85.js');
require('./Channel/components/SuggestedMentionList.js');
require('./const-bd02657f.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-df5bd4e5.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('dompurify');
require('./consts-867f1ae6.js');
require('./consts-b93ef9ea.js');
require('./consts-bce71b24.js');
require('./index-78a1037e.js');
require('./useDirtyGetMentions-1500af53.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-b6657c80.js');
require('./index-24f791d1.js');
require('./index-a3268370.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-6625f53a.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-4d2879d6.js');
require('./index-9a5e4383.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
