{"size": 328, "ext": "js", "max_stars_repo_path": "src/components/button-link.js", "max_stars_repo_name": "speziCola/portfolio", "max_stars_repo_stars_event_min_datetime": "2020-05-05T15:14:42.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-05T15:14:42.000Z", "max_issues_repo_path": "src/components/button-link.js", "max_issues_repo_name": "speziCola/portfolio", "max_issues_repo_issues_event_min_datetime": "2020-06-04T17:32:33.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-20T14:38:44.000Z", "max_forks_repo_path": "src/components/button-link.js", "max_forks_repo_name": "speziCola/portfolio", "max_forks_repo_forks_event_min_datetime": "2020-05-05T15:15:30.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-05T15:15:30.000Z"}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": 1, "avg_line_length": 15.619047619, "max_line_length": 57, "alphanum_fraction": 0.6463414634}
import React from 'react';
import PropTypes from 'prop-types';

const ButtonLink = ({
  type, url
}) => (
  <a className={`link link--${type}`} href={url}>view</a>
);

ButtonLink.defaultProps = {
  type: '',
  url: ''
};

ButtonLink.propTypes = {
  type: PropTypes.string,
  url: PropTypes.string
};

export default ButtonLink;
