text: /* eslint-disable import/prefer-default-export */
  
  import { createSelector } from 'reselect';
  
  import { makeSelectTeamPlayers } from '../../data/players/selectors';
  import { selectTeam } from '../../data/teams/selectors';
  
  // noinspection JSUnusedGlobalSymbols
  export const makeSelectTeamInfo = () => {
    const selectTeamPlayers = makeSelectTeamPlayers({ filter: 'field' });
    return createSelector([selectTeam, selectTeamPlayers],
      (team, players) => {
        if (!team) return null;
        return ({ ...team, players });
      });
  };
  