import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-76fcf995.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../_rollupPluginBabelHelpers-52628376.js';
import '../../topics-50ed8c29.js';
import '../../utils-4ce9435a.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../LocalizationContext-bcaf447a.js';
import '../../stringSet-7f300d56.js';
import '../../index-26c66412.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-5ca598bf.js';
import '../../ui/Button.js';
import '../../index-208f60f9.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../MediaQueryContext-0d6b7936.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-96f68187.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-9e3aeec6.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-46da725e.js';
import '../../utils/message/getOutgoingMessageState.js';

const CreateChannel = props => {
  const {
    onCancel,
    renderStepOne
  } = props;
  const {
    step,
    setStep,
    userListQuery
  } = useCreateChannelContext();
  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: () => {
      setStep(0);
      onCancel();
    }
  }));
};

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