import React__default from 'react';
import { u as useCreateChannelContext } from '../../chunks/bundle-rOhl9tWD.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../chunks/bundle-KwnXXB-s.js';
import '../../chunks/bundle-4ab6nIKe.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../chunks/bundle-0vtSUcHY.js';
import '../../chunks/bundle-zOkaSZl3.js';
import '../../chunks/bundle-_NUeDv_m.js';
import '../../chunks/bundle-YOec1wfw.js';
import '../../chunks/bundle-1XQGq5tE.js';
import '../../chunks/bundle-92kzAxsw.js';
import 'react-dom';
import '../../ui/IconButton.js';
import '../../ui/Button.js';
import '../../chunks/bundle-RzWTDZDo.js';
import '../../ui/Icon.js';
import '../../ui/UserListItem.js';
import '../../chunks/bundle-U_0F9z8c.js';
import '../../chunks/bundle-7RyEqo9-.js';
import '../../ui/ImageRenderer.js';
import '../../chunks/bundle-TEGbbRiE.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../chunks/bundle-brky8TnE.js';
import '../../chunks/bundle-hrqkDKRD.js';
import '@sendbird/chat/groupChannel';
import '../../utils/message/getOutgoingMessageState.js';
import '../../chunks/bundle-9wFvMqxF.js';

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

export { CreateChannel as default };
//# sourceMappingURL=CreateChannelUI.js.map
