'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-c83249cf.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-3fc4f7d7.js');
require('./index-d749c4c2.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-d993c96b.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-acf412a3.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-e24ef339.js');
require('@sendbird/chat/groupChannel');
require('./uuid-1eceb0c8.js');
require('@sendbird/chat/message');
require('./consts-9641990e.js');
require('./LocalizationContext-8cc9717d.js');
require('./stringSet-ce782136.js');
require('./utils-e6c788f1.js');
require('./index-35633fb6.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-e02d1dc0.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-8029e07a.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-fad211ad.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-a91b85d9.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-5cfb41c7.js');
require('./ui/EmojiReactions.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./useLongPress-cf56e64a.js');
require('./utils-5aa0708e.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-90711a57.js');
require('./VoiceRecorder/context.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./index-db8116c0.js');
require('./index.module-e3392caa.js');
require('./tokenize-88b021e0.js');
require('./ui/MentionLabel.js');
require('./ui/LinkLabel.js');
require('./ChannelProvider-39d1e9a4.js');
require('./const-a3e169f4.js');
require('./compareIds-784d9a4e.js');
require('./resolvedReplyType-930f5b54.js');
require('./Channel/components/SuggestedMentionList.js');
require('./const-b19292fd.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-9466af03.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('dompurify');
require('./consts-d04401ad.js');
require('./consts-016f07ac.js');
require('./consts-eb163887.js');
require('./index-ff7b4cb6.js');
require('./useDirtyGetMentions-cc476482.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-0a0a6c08.js');
require('./index-0e24aca4.js');
require('./index-bf8f9551.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-b46d3514.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-cb4e4067.js');
require('./index-985a1afb.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
