import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-763b1601.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../topics-9fbe0d61.js';
import '../../utils-aae15fda.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../_rollupPluginBabelHelpers-3e5825fa.js';
import '../../tslib.es6-cd680863.js';
import '../../LocalizationContext-a6aa8be8.js';
import '../../stringSet-ad8993d1.js';
import '../../index-757a563a.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-d4908e3c.js';
import '../../ui/Button.js';
import '../../index-67c5e94c.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../MediaQueryContext-a551e770.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-dd096494.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-9f7da91d.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-8ee9e1f5.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
