'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-593ade0c.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-358554d2.js');
require('./index-6a7f94de.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-2ff8462c.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-ea66c137.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-2fe6fef6.js');
require('@sendbird/chat/groupChannel');
require('./uuid-f1d9be11.js');
require('@sendbird/chat/message');
require('./consts-a6f34df8.js');
require('./LocalizationContext-6adf6aa8.js');
require('./stringSet-5157206d.js');
require('./utils-df6bf1c0.js');
require('./index-bff918b2.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-84c513e4.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-f84d188a.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-1dd78ce3.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-86e680cb.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-6641e39b.js');
require('./ui/EmojiReactions.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./useLongPress-928530d4.js');
require('./utils-58f8eea0.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-ce276e22.js');
require('./VoiceRecorder/context.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./index-c5341a29.js');
require('./index.module-15d2b97f.js');
require('./tokenize-bc5f4e11.js');
require('./ui/MentionLabel.js');
require('./ui/LinkLabel.js');
require('./ChannelProvider-5e48d37b.js');
require('./const-f6c8086e.js');
require('./compareIds-7b0e4960.js');
require('./resolvedReplyType-fb851d3a.js');
require('./Channel/components/SuggestedMentionList.js');
require('./const-d9157ccd.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-bed448a4.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('dompurify');
require('./consts-c7178b6e.js');
require('./consts-bac93d6f.js');
require('./consts-3a74400a.js');
require('./index-615ae40b.js');
require('./useDirtyGetMentions-cef5c0f5.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-267c66ea.js');
require('./index-e43a902a.js');
require('./index-66630f40.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-4cca3b34.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-8d25341b.js');
require('./index-9b427971.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
