text: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import {connect} from 'react-redux';
  import {getUser} from 'mattermost-redux/selectors/entities/users';
  
  import {getDisplayNameByUser} from 'utils/utils';
  
  import InstalledOAuthApp from './installed_oauth_app.jsx';
  
  function mapStateToProps(state, ownProps) {
      const oauthApp = ownProps.oauthApp || {};
      return {
          creatorName: getDisplayNameByUser(state, getUser(state, oauthApp.creator_id)),
      };
  }
  
  export default connect(mapStateToProps)(InstalledOAuthApp);
  