'use strict';

var React = require('react');
var CreateChannel_context = require('../../chunks/bundle-A7TvCVbX.js');
var CreateChannel_components_InviteUsers = require('./InviteUsers.js');
var CreateChannel_components_SelectChannelType = require('./SelectChannelType.js');
require('../../sendbirdSelectors.js');
require('../../chunks/bundle-BMB3xh2i.js');
require('../../chunks/bundle-Kwa0c8dM.js');
require('../../useSendbirdStateContext.js');
require('../../withSendbird.js');
require('../../chunks/bundle-H3iUL9jU.js');
require('../../chunks/bundle-om7V4Kmd.js');
require('../../chunks/bundle-08DJamJs.js');
require('../../chunks/bundle-ubmIpm9y.js');
require('../../chunks/bundle-lHnGN-3L.js');
require('../../chunks/bundle--t70CDfb.js');
require('react-dom');
require('../../ui/IconButton.js');
require('../../ui/Button.js');
require('../../chunks/bundle-WWYVAaVT.js');
require('../../ui/Icon.js');
require('../../ui/UserListItem.js');
require('../../chunks/bundle-uubJJzRW.js');
require('../../chunks/bundle-mNGciuzV.js');
require('../../ui/ImageRenderer.js');
require('../../chunks/bundle-DgcTM2HW.js');
require('../../ui/MutedAvatarOverlay.js');
require('../../ui/Checkbox.js');
require('../../ui/UserProfile.js');
require('../../ui/ContextMenu.js');
require('../../ui/SortByRow.js');
require('../../chunks/bundle-jP-1bn23.js');
require('../../chunks/bundle-eG-yFfLY.js');
require('@sendbird/chat/groupChannel');
require('../../utils/message/getOutgoingMessageState.js');
require('../../chunks/bundle-eg9jnWPm.js');

var CreateChannel = function (props) {
    var onCancel = props.onCancel, renderStepOne = props.renderStepOne;
    var _a = CreateChannel_context.useCreateChannelContext(), step = _a.step, setStep = _a.setStep, userListQuery = _a.userListQuery;
    return (React.createElement(React.Fragment, null,
        step === 0 && ((renderStepOne === null || renderStepOne === void 0 ? void 0 : renderStepOne()) || (React.createElement(CreateChannel_components_SelectChannelType, { onCancel: onCancel }))),
        step === 1 && (React.createElement(CreateChannel_components_InviteUsers, { userListQuery: userListQuery, onCancel: function () {
                setStep(0);
                onCancel();
            } }))));
};

module.exports = CreateChannel;
//# sourceMappingURL=CreateChannelUI.js.map
