{"size": 335, "ext": "js", "max_stars_repo_path": "client/src/components/pages/home/create-header.js", "max_stars_repo_name": "IrinaSing/irina-portfolio-githubAPI", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/components/pages/home/create-header.js", "max_issues_repo_name": "IrinaSing/irina-portfolio-githubAPI", "max_issues_repo_issues_event_min_datetime": "2021-08-09T16:12:33.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-14T11:24:46.000Z", "max_forks_repo_path": "client/src/components/pages/home/create-header.js", "max_forks_repo_name": "IrinaSing/irina-portfolio-githubAPI", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 27.9166666667, "max_line_length": 50, "alphanum_fraction": 0.7044776119}
import { state } from "../../../init/state.js";

export const createHeader = (section) => {
  const heading = document.createElement("h2");
  const headingTextNode = document.createTextNode(
    state.sections[section].header
  );
  heading.id = state.sections[section].id;
  heading.appendChild(headingTextNode);
  return heading;
};
