import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-0881b9df.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../topics-c4837013.js';
import '../../utils-780c1e12.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../_rollupPluginBabelHelpers-dfc61977.js';
import '../../tslib.es6-645dedf8.js';
import '../../LocalizationContext-187f787e.js';
import '../../stringSet-fd70cba0.js';
import '../../index-5b34a381.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-f338f866.js';
import '../../ui/Button.js';
import '../../index-46d8dde5.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../MediaQueryContext-add671c4.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-d2264917.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-e15650df.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-102fbe62.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
