{"size": 287, "ext": "js", "max_stars_repo_path": "app/components/operator/Btn.js", "max_stars_repo_name": "Caraxiong/react-demo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/components/operator/Btn.js", "max_issues_repo_name": "Caraxiong/react-demo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/components/operator/Btn.js", "max_forks_repo_name": "Caraxiong/react-demo", "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": 22.0769230769, "max_line_length": 102, "alphanum_fraction": 0.6655052265}
import React from 'react'
import PropTypes from 'prop-types'

const Btn = ({ onClick ,btnName }) => (
    <a href="javascript:void(0)" className="btn btn-blue" onClick = { onClick }><i></i>{ btnName }</a>
)

Btn.propTypes = {
    onClick: PropTypes.func.isRequired
}

export default Btn
