import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-4604e579.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../topics-d2e15fe6.js';
import '../../utils-5a4995e3.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../_rollupPluginBabelHelpers-636e674b.js';
import '../../tslib.es6-279bc71d.js';
import '../../LocalizationContext-5920dafc.js';
import '../../stringSet-f0e25f08.js';
import '../../index-b5b56cb7.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-d2dd3ae2.js';
import '../../ui/Button.js';
import '../../index-4a23e6ff.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../MediaQueryContext-9c1bb79f.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-749db4f6.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-636df95b.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-1a59aaa9.js';
import '../../utils/message/getOutgoingMessageState.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
