{"size": 271, "ext": "js", "max_stars_repo_path": "web/src/components/Button/index.js", "max_stars_repo_name": "lucasnr/node-react-todo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/src/components/Button/index.js", "max_issues_repo_name": "lucasnr/node-react-todo", "max_issues_repo_issues_event_min_datetime": "2021-03-10T15:20:58.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-19T00:56:52.000Z", "max_forks_repo_path": "web/src/components/Button/index.js", "max_forks_repo_name": "lucasnr/node-react-todo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 19.3571428571, "max_line_length": 60, "alphanum_fraction": 0.6236162362}
import React from 'react';

import { Container, ButtonGroup } from './styles';

export default function Button({ onClick, text, ...rest }) {
  return (
    <Container onClick={onClick} {...rest}>
      <span>{text}</span>
    </Container>
  );
}

export { ButtonGroup };
