text: // Copyright (c) 2015-present Xenia, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import {connect} from 'react-redux';
  import {getCurrentTeam} from 'xenia-redux/selectors/entities/teams';
  
  import {getSiteURL} from 'utils/url';
  
  import ChangeURLModal from './change_url_modal';
  
  function mapStateToProps(state) {
      const currentTeam = getCurrentTeam(state);
      const currentTeamURL = `${getSiteURL()}/${currentTeam.name}`;
      return {
          currentTeamURL,
      };
  }
  
  export default connect(mapStateToProps)(ChangeURLModal);
  