{"size": 889, "ext": "js", "max_stars_repo_path": "app/javascript/components/maps/main-map/components/map-controls/map-controls-selectors.js", "max_stars_repo_name": "teresa-n-schofield/gfw", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/javascript/components/maps/main-map/components/map-controls/map-controls-selectors.js", "max_issues_repo_name": "teresa-n-schofield/gfw", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/javascript/components/maps/main-map/components/map-controls/map-controls-selectors.js", "max_forks_repo_name": "teresa-n-schofield/gfw", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.6551724138, "max_line_length": 85, "alphanum_fraction": 0.8065241845}
import { createStructuredSelector } from 'reselect';

import {
  getRecentImagerySettings,
  getRecentImageryLoading,
  getMapSettings,
  getActive,
  getRecentImageryDataset
} from 'components/maps/main-map/components/recent-imagery/recent-imagery-selectors';
import {
  getHidePanels,
  getShowBasemaps
} from 'components/maps/main-map/selectors';

const getDatasetsLoading = state => state.datasets && state.datasets.loading;
const getMapTourOpen = state => state.mapTour && state.mapTour.open;

export const getMapControlsProps = createStructuredSelector({
  recentLoading: getRecentImageryLoading,
  datasetsLoading: getDatasetsLoading,
  hidePanels: getHidePanels,
  mapSettings: getMapSettings,
  showBasemaps: getShowBasemaps,
  recentSettings: getRecentImagerySettings,
  recentActive: getActive,
  recentImageryDataset: getRecentImageryDataset,
  mapTourOpen: getMapTourOpen
});
