import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../icon';

export default function CircleArrow({
  stroke,
  fill,
  strokeWidth,
  style: styleProp,
  ...rest // eslint-disable-line comma-dangle
}) {
  const style = {
    ...styleProp,
    ...Icon.defaultProps.style,
  };
  return (
    <svg style={style} {...rest}>
      <g stroke="none" strokeWidth={strokeWidth} fill="none" fillRule="evenodd">
        <g fillRule="nonzero" fill={fill}>
          <path
            d="M12.4148521,3.58560674 C11.2488774,2.58406902 9.7803811,1.875 8.11101235,1.875 C4.67994889,1.875
            1.88887654,4.6225 1.88887654,8 C1.88887654,11.3775 4.67994889,14.125 8.11101235,14.125 C10.424758,14.125
            12.534062,12.872875 13.6158248,10.85775 C13.7304899,10.64425 13.9998194,10.562875 14.2167053,10.67575
            C14.4335912,10.788625 14.5162567,11.05375 14.4015916,11.26725 C13.1651644,13.569375 10.7545312,15 8.11101235,15
            C6.21148317,15 4.4257302,14.272 3.08263774,12.949875 C1.73954528,11.62775 1,9.869875 1,8 C1,6.130125
            1.73954528,4.37225 3.08263774,3.050125 C4.4257302,1.728 6.21148317,1 8.11101235,1 C9.98580446,1
            11.7302392,1.73098743 13.0859275,2.9996272 C13.0857261,2.98665689 13.0855093,2.97340463 13.0852829,2.9598644
            L13.0959286,1.52740376 C13.097842,1.28419019 13.2977147,1.08431745 13.5409283,1.08240407 C13.7841418,1.08049069
            13.9802756,1.27662444 13.9783622,1.519838 L13.9593663,4.0137076 C13.957786,4.13531929 13.9076513,4.24608842
            13.8271994,4.32654034 C13.7467475,4.40699226 13.6365971,4.4577457 13.5143667,4.45870729 L11.0198685,4.47833169
            C10.776655,4.48024507 10.5805212,4.28411132 10.5824346,4.04089775 C10.584348,3.79768419 10.7835922,3.59843998
            11.0268057,3.5965266 L12.4148521,3.58560674 Z"
          />
        </g>
      </g>
    </svg>
  );
}

CircleArrow.propTypes = {
  ...Icon.propTypes,
  stroke: PropTypes.string,
  fill: PropTypes.string,
  strokeWidth: PropTypes.number,
};

CircleArrow.defaultProps = Icon.defaultProps;
