import React__default from 'react';
import { u as useCreateChannelContext } from '../../CreateChannelProvider-5d32c403.js';
import InviteUsers from './InviteUsers.js';
import SelectChannelType from './SelectChannelType.js';
import '../../sendbirdSelectors.js';
import '../../_rollupPluginBabelHelpers-a69fd1ce.js';
import '../../topics-247fcf3a.js';
import '../../utils-4bf6e4e6.js';
import '../../useSendbirdStateContext.js';
import '../../withSendbird.js';
import '../../LocalizationContext-426f3d58.js';
import '../../stringSet-a62108b2.js';
import '../../index-90420b99.js';
import '../../ui/Modal.js';
import 'react-dom';
import '../../index-3e548496.js';
import '../../ui/Button.js';
import '../../index-4105bc4d.js';
import 'prop-types';
import '../../ui/Icon.js';
import '../../ui/IconButton.js';
import '../../MediaQueryContext-b531adc9.js';
import '../../ui/UserListItem.js';
import '../../UserProfileContext-a59f0533.js';
import '../../ui/Avatar.js';
import '../../ui/ImageRenderer.js';
import '../../uuid-2e8efc75.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../ui/ContextMenu.js';
import '../../ui/SortByRow.js';
import '../../index-f83f0aac.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
