{"size": 368, "ext": "js", "max_stars_repo_path": "src/components/layout/wrapper/index.js", "max_stars_repo_name": "henrikfalck/hfm-gatsby-repo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/layout/wrapper/index.js", "max_issues_repo_name": "henrikfalck/hfm-gatsby-repo", "max_issues_repo_issues_event_min_datetime": "2020-07-29T12:12:15.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T03:24:19.000Z", "max_forks_repo_path": "src/components/layout/wrapper/index.js", "max_forks_repo_name": "henrikfalck/hfm-gatsby-repo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 16.7272727273, "max_line_length": 50, "alphanum_fraction": 0.6086956522}
import React from "react"
import PropTypes from "prop-types"

const Wrapper = ({ width, center, children }) => (
  <div
    className="wrapper"
    style={{
      width: "inherit",
      maxWidth: width,
      margin: center ? "0 auto" : "0",
    }}
  >
    {children}
  </div>
)

Wrapper.propTypes = {
  children: PropTypes.node.isRequired,
}

export default Wrapper
