{"size": 1362, "ext": "js", "max_stars_repo_path": "app/containers/EditorContainer/selectors.js", "max_stars_repo_name": "simon-study/redux-real-world-boilerplate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/containers/EditorContainer/selectors.js", "max_issues_repo_name": "simon-study/redux-real-world-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/containers/EditorContainer/selectors.js", "max_forks_repo_name": "simon-study/redux-real-world-boilerplate", "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": 23.0847457627, "max_line_length": 76, "alphanum_fraction": 0.7400881057}
import { createSelector } from 'reselect';

/**
 * Direct selector to the editorContainer state domain
 */
const selectEditorContainerDomain = (state) => state.get('editorContainer');

const makeSelectEditorContainer = () => createSelector(
  selectEditorContainerDomain,
  (substate) => substate.toJS()
);

const makeSelectTitle = () => createSelector(
  selectEditorContainerDomain,
  (substate) => substate.get('title')
);

const makeSelectDescription = () => createSelector(
  selectEditorContainerDomain,
  (substate) => substate.get('description')
);

const makeSelectBody = () => createSelector(
  selectEditorContainerDomain,
  (substate) => substate.get('body')
);

const makeSelectTag = () => createSelector(
  selectEditorContainerDomain,
  (substate) => substate.get('tag')
);

const makeSelectTagList = () => createSelector(
  makeSelectEditorContainer(),
  (substate) => substate.tagList
);

const makeSelectArticle = () => createSelector(
  makeSelectEditorContainer(),
  (substate) => substate.article
);

const makeSelectErrors = () => createSelector(
  makeSelectEditorContainer(),
  (substate) => substate.errors
);

export default makeSelectEditorContainer;
export {
  selectEditorContainerDomain,
  makeSelectTitle,
  makeSelectDescription,
  makeSelectBody,
  makeSelectTag,
  makeSelectTagList,
  makeSelectArticle,
  makeSelectErrors,
};
