import { _ as __assign } from '../../chunks/bundle-CyKcXwxv.js';
import React__default from 'react';
import { useGroupChannelContext } from '../context.js';
import { G as GroupChannelUIView } from '../../chunks/bundle-DegdQKNE.js';
import { GroupChannelHeader } from './GroupChannelHeader.js';
import { MessageList } from './MessageList.js';
import { MessageInputWrapper } from './MessageInputWrapper.js';
import { d as deleteNullish } from '../../chunks/bundle-B43BrwWe.js';
import '@sendbird/chat/message';
import '@sendbird/chat/groupChannel';
import '@sendbird/uikit-tools';
import '../../chunks/bundle-DV19ISeX.js';
import '../../withSendbird.js';
import '../../chunks/bundle-DIM08oup.js';
import '../../chunks/bundle-DCvGHvPz.js';
import '../../utils/message/getOutgoingMessageState.js';
import '../../chunks/bundle-BFKFmP-d.js';
import '../../chunks/bundle-DAYMi6vw.js';
import '../../chunks/bundle-vddg8rUR.js';
import 'react-dom';
import '../../chunks/bundle-C_RTy-wB.js';
import '../../chunks/bundle-xzHlqm91.js';
import '../../chunks/bundle-yFfkfO0O.js';
import '../../ui/IconButton.js';
import '../../ui/Button.js';
import '../../chunks/bundle-bz4PqMYo.js';
import '../../ui/Icon.js';
import 'css-vars-ponyfill';
import '@sendbird/chat';
import '../../chunks/bundle-BUQ58hWb.js';
import '@sendbird/chat/openChannel';
import '../../chunks/bundle-CKwMZR9c.js';
import '../../useSendbirdStateContext.js';
import '../../chunks/bundle-Bien0gJP.js';
import '../../ui/SortByRow.js';
import '../../chunks/bundle-GyANJ9jq.js';
import '../../chunks/bundle-By4qJA7N.js';
import '../../chunks/bundle-zh5Jl1yd.js';
import '../../chunks/bundle-N7XRO_Ma.js';
import '../../chunks/bundle-BH8KNCSz.js';
import '../../chunks/bundle-BCRvYX9G.js';
import '../../chunks/bundle-DmBEox5Y.js';
import './TypingIndicator.js';
import '../../chunks/bundle-8_8OKn7w.js';
import '../../ui/ConnectionStatus.js';
import '../../ui/PlaceHolder.js';
import '../../ui/Loader.js';
import '../../chunks/bundle-CfpNkiwV.js';
import '../../ui/ChannelAvatar.js';
import '../../chunks/bundle-BUD_vgZ5.js';
import '../../ui/ImageRenderer.js';
import '../../chunks/bundle-Dmj05jBl.js';
import '../../chunks/bundle-DjLWD266.js';
import '../../chunks/bundle-CjkpWWqV.js';
import '../../ui/Header.js';
import '../../ui/TextButton.js';
import '../../chunks/bundle-GXXt0WAx.js';
import './Message.js';
import '../../chunks/bundle-GG7FwOCN.js';
import '../../chunks/bundle-rAzWFbt-.js';
import '../../Message/hooks/useDirtyGetMentions.js';
import '../../ui/DateSeparator.js';
import '../../ui/MessageInput.js';
import '../../chunks/bundle-NEplso7H.js';
import '../../chunks/bundle-CdOhleNh.js';
import 'dompurify';
import '../../chunks/bundle-2Qim3Dap.js';
import '../../chunks/bundle-fX_liw7W.js';
import '../../chunks/bundle-rk3bNfCF.js';
import '../../chunks/bundle-CXmeegua.js';
import '../../ui/MessageContent.js';
import '../../chunks/bundle-DO6Om5Ct.js';
import '../../chunks/bundle-BKYxwr2v.js';
import '../../chunks/bundle-DDXgauuR.js';
import '../../chunks/bundle-D3wwnhPQ.js';
import '../../ui/MessageItemReactionMenu.js';
import '../../ui/ReactionButton.js';
import '../../chunks/bundle-D91-xsQ4.js';
import '../../ui/EmojiReactions.js';
import '../../ui/ReactionBadge.js';
import '../../ui/BottomSheet.js';
import '../../ui/UserListItem.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../sendbirdSelectors.js';
import '../../ui/Tooltip.js';
import '../../ui/TooltipWrapper.js';
import '../../Message/context.js';
import '../../ui/AdminMessage.js';
import '../../ui/QuoteMessage.js';
import '../../chunks/bundle-Cw9lWLKX.js';
import '../../ui/MobileMenu.js';
import '../../ui/ThreadReplies.js';
import '../../chunks/bundle-B-ZON1no.js';
import '../../ui/OGMessageItemBody.js';
import '../../chunks/bundle-DK6h-KUk.js';
import '../../ui/MentionLabel.js';
import '../../ui/LinkLabel.js';
import '../../ui/TextMessageItemBody.js';
import '../../ui/FileMessageItemBody.js';
import '../../chunks/bundle-DfMC2kfy.js';
import '../../ui/FileViewer.js';
import '../../chunks/bundle-RRVvccZ1.js';
import '../../ui/VoiceMessageItemBody.js';
import '../../ui/ProgressBar.js';
import '../../VoicePlayer/useVoicePlayer.js';
import '../../ui/PlaybackTime.js';
import '../../ui/ThumbnailMessageItemBody.js';
import '../../ui/UnknownMessageItemBody.js';
import '../../ui/TemplateMessageItemBody.js';
import '../../chunks/bundle-BfPwsSYD.js';
import '../../ui/FallbackTemplateMessageItemBody.tsx.js';
import '../../ui/LoadingTemplateMessageItemBody.tsx.js';
import '../../ui/MessageFeedbackFailedModal.js';
import '../../ui/FeedbackIconButton.js';
import '../../ui/MobileFeedbackMenu.js';
import '../../ui/MessageFeedbackModal.js';
import '../../ui/Input.js';
import '../../chunks/bundle-Zi-DQlYN.js';
import './SuggestedReplies.js';
import '../../chunks/bundle-B5Xnb7gI.js';
import './FileViewer.js';
import '../../chunks/bundle-DMP0TlRl.js';
import './RemoveMessageModal.js';
import '../../chunks/bundle-CtcN5584.js';
import '../../chunks/bundle-DVRTAl51.js';
import './UnreadCount.js';
import './FrozenNotification.js';
import '../../ui/TypingIndicatorBubble.js';
import '../../Channel/utils/getMessagePartsInfo.js';
import '../../Channel/utils/compareMessagesForGrouping.js';
import '../../chunks/bundle-15-msoxy.js';
import '../../chunks/bundle-CR8vMlZ1.js';
import './SuggestedMentionList.js';
import '../../ui/QuoteMessageInput.js';
import '../../VoiceRecorder/useVoiceRecorder.js';
import '../../chunks/bundle-CryHyqDF.js';
import '../../chunks/bundle-BAACXDmZ.js';

var GroupChannelUI = function (props) {
    var context = useGroupChannelContext();
    var channelUrl = context.channelUrl, fetchChannelError = context.fetchChannelError;
    // Inject components to presentation layer
    var _a = deleteNullish(props), _b = _a.renderChannelHeader, renderChannelHeader = _b === void 0 ? function (props) { return React__default.createElement(GroupChannelHeader, __assign({}, props)); } : _b, _c = _a.renderMessageList, renderMessageList = _c === void 0 ? function (props) { return React__default.createElement(MessageList, __assign({}, props, { className: "sendbird-conversation__message-list" })); } : _c, _d = _a.renderMessageInput, renderMessageInput = _d === void 0 ? function () { return React__default.createElement(MessageInputWrapper, __assign({}, props)); } : _d;
    return (React__default.createElement(GroupChannelUIView, __assign({}, props, context, { isInvalid: fetchChannelError !== null, channelUrl: channelUrl, renderChannelHeader: renderChannelHeader, renderMessageList: renderMessageList, renderMessageInput: renderMessageInput })));
};

export { GroupChannelUI, GroupChannelUI as default };
//# sourceMappingURL=GroupChannelUI.js.map
