import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-71012e62.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../topics-29b13da4.js';
import '../../utils-e6f6eb1b.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../_rollupPluginBabelHelpers-87a4819d.js';
import '../../tslib.es6-5a2250f9.js';
import '../../LocalizationContext-1417e9d3.js';
import '../../stringSet-adf0eb59.js';
import '../../index-097f4b78.js';
import '../../ui/Modal.js';
import 'prop-types';
import 'react-dom';
import '../../index-b9a5ff91.js';
import '../../ui/IconButton.js';
import '../../ui/Icon.js';
import '../../index-ff084076.js';
import '../../index-fdcc4a92.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-c72e5006.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-9ac267fb.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../index-e647d770.js';
import '../../ui/SortByRow.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
