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

export default function SignOut({
  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="M0,13.7058824 L0,1.41176471 C0,0.633411765 0.633411765,0 1.41176471,0 L8.94117647,0 C9.71952941,0
            10.3529412,0.633411765 10.3529412,1.41176471 L10.3529412,4.17647059 C10.3529412,4.43623529 10.1421176,4.64705882
            9.88235294,4.64705882 C9.62258824,4.64705882 9.41176471,4.43623529 9.41176471,4.17647059 L9.41176471,1.41176471
            C9.41176471,1.152 9.20094118,0.941176471 8.94117647,0.941176471 L1.41176471,0.941176471 C1.152,0.941176471
            0.941176471,1.152 0.941176471,1.41176471 L0.941176471,12.7058824 C0.941176471,12.9656471 1.152,13.1764706
            1.41176471,13.1764706 L8.94117647,13.1764706 C9.20094118,13.1764706 9.41176471,12.9656471 9.41176471,12.7058824
            L9.41176471,9.94117647 C9.41176471,9.68141176 9.62258824,9.47058824 9.88235294,9.47058824 C10.1421176,9.47058824
            10.3529412,9.68141176 10.3529412,9.94117647 L10.3529412,12.7058824 C10.3529412,13.4842353 9.71952941,14.1176471
            8.94117647,14.1176471 L1.41176471,14.1176471 C0.633411765,14.1176471 0,14.4842353 0,13.7058824 Z"
          />
          <path
            d="M15.392,7.39105882 C15.5755294,7.20752941 15.5755294,6.90917647 15.392,6.72564706 L12.5684706,3.90211765
            C12.3849412,3.71858824 12.0865882,3.71858824 11.9030588,3.90211765 C11.7195294,4.08564706 11.7195294,4.384
            11.9030588,4.56752941 L13.9228235,6.58823529 L5.17647059,6.58823529 C4.91670588,6.58823529 4.70588235,6.79905882
            4.70588235,7.05882353 C4.70588235,7.31858824 4.91670588,7.52941176 5.17647059,7.52941176 L13.9228235,7.52941176
            L11.9030588,9.55011765 C11.8108235,9.64235294 11.7656471,9.76282353 11.7656471,9.88235294 C11.7656471,10.0018824
            11.8117647,10.1232941 11.9030588,10.2145882 C12.0865882,10.3981176 12.3849412,10.3981176 12.5684706,10.2145882
            L15.392,7.39105882 Z"
          />
        </g>
      </g>
    </svg>
  );
}

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

SignOut.defaultProps = {
  ...Icon.defaultProps,
  width: 16,
  height: 15,
  viewBox: '0 0 16 15',
};
