{"size": 374, "ext": "js", "max_stars_repo_path": "src/redux/selectors/settings_selector.js", "max_stars_repo_name": "MariyaKhamzina/bodymovin-extension", "max_stars_repo_stars_event_min_datetime": "2020-01-30T01:32:17.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-23T04:38:53.000Z", "max_issues_repo_path": "src/redux/selectors/settings_selector.js", "max_issues_repo_name": "MariyaKhamzina/bodymovin-extension", "max_issues_repo_issues_event_min_datetime": "2020-03-24T16:29:56.000Z", "max_issues_repo_issues_event_max_datetime": "2020-03-24T16:29:56.000Z", "max_forks_repo_path": "src/redux/selectors/settings_selector.js", "max_forks_repo_name": "MariyaKhamzina/bodymovin-extension", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 23.375, "max_line_length": 53, "alphanum_fraction": 0.7379679144}
import { createSelector } from 'reselect'

const getCompositions = (state) => state.compositions

const settingsSelector = createSelector(
  [ getCompositions ],
  (compositions) => {
  	const items = compositions.items
  	const current = compositions.current
  	const currentComp = items[current] || {}

  	return currentComp.settings
  }
)

export default settingsSelector