'use strict';

var React = require('react');
var Thread_context = require('./ThreadProvider-3ff0ff63.js');
var Thread_components_ThreadUI = require('./Thread/components/ThreadUI.js');
require('./index-849f44b0.js');
require('./index-97005534.js');
require('./utils/message/getOutgoingMessageState.js');
require('./UserProfileContext-c87514d3.js');
require('prop-types');
require('./useSendbirdStateContext.js');
require('./withSendbird.js');
require('./_rollupPluginBabelHelpers-3a9d1641.js');
require('./Thread/context/types.js');
require('@sendbird/chat');
require('./topics-3226c6ee.js');
require('@sendbird/chat/groupChannel');
require('./uuid-5ab4f88b.js');
require('@sendbird/chat/message');
require('./consts-f71467c8.js');
require('./LocalizationContext-b42fa07d.js');
require('./stringSet-4f30313f.js');
require('./utils-411a893e.js');
require('./index-72e412f7.js');
require('./Thread/components/ParentMessageInfo.js');
require('./RemoveMessageModal-83d3158a.js');
require('./ui/Modal.js');
require('react-dom');
require('./index-e8b83547.js');
require('./ui/Button.js');
require('./ui/Icon.js');
require('./ui/IconButton.js');
require('./MediaQueryContext-372b55a6.js');
require('./Thread/components/ParentMessageInfoItem.js');
require('./index-0b8a1074.js');
require('./ui/ImageRenderer.js');
require('./ui/TextButton.js');
require('./color-a4e73e6f.js');
require('./ui/EmojiReactions.js');
require('./ui/ReactionBadge.js');
require('./ui/ReactionButton.js');
require('./useLongPress-bf1e8eee.js');
require('./utils-146517a9.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-cb1d7ac4.js');
require('./VoiceRecorder/context.js');
require('./ui/PlaybackTime.js');
require('./ui/Loader.js');
require('./index-1c18afa8.js');
require('./index.module-d2876b1c.js');
require('./tokenize-e944d548.js');
require('./ui/MentionLabel.js');
require('./ui/LinkLabel.js');
require('./ChannelProvider-2bfafa25.js');
require('./compareIds-a7029d6a.js');
require('./const-68cf2709.js');
require('./Channel/components/SuggestedMentionList.js');
require('./const-3ab3e45c.js');
require('./ui/FileViewer.js');
require('./ui/MessageItemMenu.js');
require('./types-31174fcc.js');
require('./ui/MessageItemReactionMenu.js');
require('./ui/MessageInput.js');
require('dompurify');
require('./consts-bb2a67c7.js');
require('./consts-ad8ba629.js');
require('./consts-26d4668c.js');
require('./index-a401f2b6.js');
require('./useDirtyGetMentions-97c6e05a.js');
require('./Thread/components/ThreadHeader.js');
require('./Thread/components/ThreadList.js');
require('./Thread/components/ThreadListItem.js');
require('./ui/DateSeparator.js');
require('./index-e1d69370.js');
require('./index-7ec4fe06.js');
require('./index-afada680.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-6e1d03d7.js');
require('./VoiceRecorder/useVoiceRecorder.js');
require('./index-9b23b5c2.js');
require('./index-9d9e563e.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
