import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-d2188082.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../_rollupPluginBabelHelpers-b2d9bfc5.js';
import '../../topics-d8d10f83.js';
import '../../utils-0c09801e.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../LocalizationContext-9c54e783.js';
import '../../stringSet-1f18348a.js';
import '../../index-a9ddd0f5.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-2a938266.js';
import '../../ui/Button.js';
import '../../index-4111594a.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../MediaQueryContext-1988a4bc.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-a8aa4c0f.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-48baadaf.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-dbe0e004.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
