{"size": 354, "ext": "js", "max_stars_repo_path": "packages/client/src/app/connectors/with-active-for-doc.js", "max_stars_repo_name": "arndissler/patternplate", "max_stars_repo_stars_event_min_datetime": "2015-08-16T15:31:46.000Z", "max_stars_repo_stars_event_max_datetime": "2018-02-14T22:04:29.000Z", "max_issues_repo_path": "packages/client/src/app/connectors/with-active-for-doc.js", "max_issues_repo_name": "arndissler/patternplate", "max_issues_repo_issues_event_min_datetime": "2015-08-17T07:58:03.000Z", "max_issues_repo_issues_event_max_datetime": "2018-02-23T08:55:25.000Z", "max_forks_repo_path": "packages/client/src/app/connectors/with-active-for-doc.js", "max_forks_repo_name": "arndissler/patternplate", "max_forks_repo_forks_event_min_datetime": "2015-10-04T07:44:09.000Z", "max_forks_repo_forks_event_max_datetime": "2018-03-02T23:37:44.000Z"}
{"max_stars_count": 168, "max_issues_count": 146, "max_forks_count": 25, "avg_line_length": 27.2307692308, "max_line_length": 74, "alphanum_fraction": 0.7316384181}
import frontmatter from "front-matter";
import { connect } from "react-redux";
import { createSelector } from "reselect";
import * as item from "../selectors/item";

const withActiveForDoc = createSelector(item.selectContents, contents => {
  return {
    active: frontmatter(contents).body.length > 0
  };
});

export default connect(withActiveForDoc);
