import React__default, { useState } from 'react';
import { u as useChannelListContext } from '../../chunks/bundle-DeaoiON_.js';
import { A as AddGroupChannelView } from '../../chunks/bundle-BucsiL3g.js';
import '../../chunks/bundle-B9I7KCZ2.js';
import '@sendbird/chat/groupChannel';
import '../../chunks/bundle-D6I-uHp_.js';
import '../../chunks/bundle-B97onQ-B.js';
import '../../chunks/bundle-B628FXKZ.js';
import '../../chunks/bundle-Mfnn12A9.js';
import '../../chunks/bundle-DUd6AS_D.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../chunks/bundle-BGoByD2z.js';
import '../../utils/message/getOutgoingMessageState.js';
import '../../chunks/bundle-ByuZy4m8.js';
import '../../chunks/bundle-DnVyKahm.js';
import '../../chunks/bundle-3xeGw_F0.js';
import '../../ui/IconButton.js';
import '../../ui/Icon.js';
import '../../CreateChannel.js';
import '../../CreateChannel/components/CreateChannelUI.js';
import '../../chunks/bundle-BIHWK4cm.js';
import '../../sendbirdSelectors.js';
import '../../CreateChannel/components/InviteUsers.js';
import '../../chunks/bundle-BPLoGpIy.js';
import '../../chunks/bundle-BwafidOs.js';
import '../../chunks/bundle-CMgJTzYH.js';
import '../../chunks/bundle-BydEbpDQ.js';
import '../../chunks/bundle-DAF0GGlr.js';
import 'react-dom';
import '../../ui/Button.js';
import '../../chunks/bundle-B1gHpFXu.js';
import '@sendbird/uikit-tools';
import 'css-vars-ponyfill';
import '@sendbird/chat';
import '@sendbird/chat/openChannel';
import '../../chunks/bundle-jVDgtxRn.js';
import '../../chunks/bundle-BfonFE4n.js';
import '../../ui/SortByRow.js';
import '../../ui/UserListItem.js';
import '../../chunks/bundle-D89r5O-w.js';
import '../../ui/ImageRenderer.js';
import '../../chunks/bundle-DVCGbhaI.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../CreateChannel/components/SelectChannelType.js';

var AddChannel = function () {
    var _a = useState(false), showModal = _a[0], setShowModal = _a[1];
    var _b = useChannelListContext(), overrideInviteUser = _b.overrideInviteUser, onBeforeCreateChannel = _b.onBeforeCreateChannel, onChannelSelect = _b.onChannelSelect;
    return (React__default.createElement(AddGroupChannelView, { createChannelVisible: showModal, onChangeCreateChannelVisible: setShowModal, onCreateChannelClick: overrideInviteUser, onBeforeCreateChannel: onBeforeCreateChannel, onChannelCreated: function (it) { return onChannelSelect === null || onChannelSelect === void 0 ? void 0 : onChannelSelect(it); } }));
};

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