{"size": 642, "ext": "js", "max_stars_repo_path": "src/components/Spinner/Spinner.js", "max_stars_repo_name": "danieldare/design_sample", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Spinner/Spinner.js", "max_issues_repo_name": "danieldare/design_sample", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Spinner/Spinner.js", "max_forks_repo_name": "danieldare/design_sample", "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.9285714286, "max_line_length": 98, "alphanum_fraction": 0.523364486}
import React from 'react';
import { SpinnerStyle } from './Spinner.style';

const Spinner = ({ color = '#000c2c', borderWidth = '5px', size = '40px', height = '100vh' }) => {
  return (
    <div
      style={{
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        background: 'transparent',
        width: '100%',
        height: height,
        marginTop: '20px',
      }}
    >
      <SpinnerStyle color={color} borderWidth={borderWidth} size={size}>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
      </SpinnerStyle>
    </div>
  );
};

export default Spinner;
