import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-879ea78c.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../topics-398017ae.js';
import '../../utils-dc344408.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../_rollupPluginBabelHelpers-b9099c54.js';
import '../../tslib.es6-84f8edfa.js';
import '../../LocalizationContext-a6f8fb25.js';
import '../../stringSet-ed906148.js';
import '../../index-fb7fd76d.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-ecc6d4a9.js';
import '../../ui/Button.js';
import '../../index-c2f20322.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-58463608.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-bd74c65a.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-cc905e95.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 /*#__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 () {
      setStep(0);
      onCancel();
    }
  }));
};

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