import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-0af2a424.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../topics-18836011.js';
import '../../utils-301322ba.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../_rollupPluginBabelHelpers-3043541a.js';
import '../../tslib.es6-710c6267.js';
import '../../LocalizationContext-2a073ef0.js';
import '../../stringSet-647493ce.js';
import '../../index-5ec69689.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-c9cda9f6.js';
import '../../index-6a47d16f.js';
import '../../index-ed39099a.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-143a6a42.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-60ae25c1.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-03ccaf35.js';

var CreateChannel = function CreateChannel(props) {
  var _onCancel = props.onCancel,
      renderStepOne = props.renderStepOne;

  var _a = useCreateChannelContext(),
      step = _a.step,
      setStep = _a.setStep,
      userListQuery = _a.userListQuery;

  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, step === 0 && ((renderStepOne === null || renderStepOne === void 0 ? void 0 : renderStepOne()) || /*#__PURE__*/React__default.createElement(SelectChannelType, {
    onCancel: _onCancel
  })), step === 1 && /*#__PURE__*/React__default.createElement(InviteUsers, {
    userListQuery: userListQuery,
    onCancel: function onCancel() {
      setStep(0);

      _onCancel();
    }
  }));
};

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