{"size": 411, "ext": "js", "max_stars_repo_path": "src/components/ControlButtons/BackButton/index.js", "max_stars_repo_name": "EasonChiang7178/f2e-online-payment", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/ControlButtons/BackButton/index.js", "max_issues_repo_name": "EasonChiang7178/f2e-online-payment", "max_issues_repo_issues_event_min_datetime": "2021-05-10T07:07:19.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T16:23:23.000Z", "max_forks_repo_path": "src/components/ControlButtons/BackButton/index.js", "max_forks_repo_name": "EasonChiang7178/f2e-online-payment", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 19.5714285714, "max_line_length": 58, "alphanum_fraction": 0.695863747}
import React from "react"
import PropTypes from "prop-types"

import { Button } from "./index.css"

const BackButton = ({ className, children, onClick }) => {
  return (
    <Button className={className} onClick={onClick}>
      {children}
    </Button>
  )
}

BackButton.propTypes = {
  className: PropTypes.string,
  children: PropTypes.node.isRequired,
  onClick: PropTypes.func
}

export default BackButton
