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

export default function Market({
  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} fillRule="nonzero" fill={fill}>
        <path d="M2.94736842,16 L0.421052632,16 C0.188631579,16 0,15.81184 0,15.58 L0,9.7 C0,9.46816 0.188631579,9.28 0.421052632,9.28 L2.94736842,9.28 C3.17978947,9.28 3.36842105,9.46816 3.36842105,9.7 L3.36842105,15.58 C3.36842105,15.81184 3.17978947,16 2.94736842,16 Z M0.842105263,15.16 L2.52631579,15.16 L2.52631579,10.12 L0.842105263,10.12 L0.842105263,15.16 Z" />
        <path d="M7.15789474,16 L4.63157895,16 C4.39915789,16 4.21052632,15.81184 4.21052632,15.58 L4.21052632,7.18 C4.21052632,6.94816 4.39915789,6.76 4.63157895,6.76 L7.15789474,6.76 C7.39031579,6.76 7.57894737,6.94816 7.57894737,7.18 L7.57894737,15.58 C7.57894737,15.81184 7.39031579,16 7.15789474,16 Z M5.05263158,15.16 L6.73684211,15.16 L6.73684211,7.6 L5.05263158,7.6 L5.05263158,15.16 Z" />
        <path d="M11.3684211,16 L8.84210526,16 C8.60968421,16 8.42105263,15.81184 8.42105263,15.58 L8.42105263,8.02 C8.42105263,7.78816 8.60968421,7.6 8.84210526,7.6 L11.3684211,7.6 C11.6008421,7.6 11.7894737,7.78816 11.7894737,8.02 L11.7894737,15.58 C11.7894737,15.81184 11.6008421,16 11.3684211,16 Z M9.26315789,15.16 L10.9473684,15.16 L10.9473684,8.44 L9.26315789,8.44 L9.26315789,15.16 Z" />
        <path d="M15.5789474,16 L13.0526316,16 C12.8202105,16 12.6315789,15.81184 12.6315789,15.58 L12.6315789,4.66 C12.6315789,4.42816 12.8202105,4.24 13.0526316,4.24 L15.5789474,4.24 C15.8113684,4.24 16,4.42816 16,4.66 L16,15.58 C16,15.81184 15.8113684,16 15.5789474,16 Z M13.4736842,15.16 L15.1578947,15.16 L15.1578947,5.08 L13.4736842,5.08 L13.4736842,15.16 Z" />
        <path d="M15.0349474,0.16264 C14.9221053,0.05008 14.7553684,0.0106 14.6037895,0.061 L12.0774737,0.901 C11.8568421,0.97408 11.7372632,1.2118 11.8113684,1.43188 C11.8854737,1.65196 12.1237895,1.77124 12.3435789,1.69732 L13.1781053,1.42012 L9.56126316,5.02792 C9.38189474,5.20684 9.04589474,5.2312 8.84210526,5.07916 L6.82105263,3.56716 C6.29557895,3.17404 5.48463158,3.19084 4.976,3.6058 L0.996210526,6.85408 C0.816,7.00108 0.789894737,7.26568 0.937263158,7.44544 C1.02063158,7.54708 1.14105263,7.59916 1.26315789,7.59916 C1.35663158,7.59916 1.45094737,7.56808 1.52926316,7.50424 L5.50905263,4.25596 C5.71621053,4.08628 6.10105263,4.07872 6.31494737,4.23916 L8.336,5.75116 C8.87747368,6.15604 9.67663158,6.09976 10.1557895,5.6218 L13.7726316,2.014 L13.4947368,2.84644 C13.4214737,3.06652 13.5402105,3.30424 13.7608421,3.37732 C13.8046316,3.39244 13.8501053,3.39916 13.8938947,3.39916 C14.0698947,3.39916 14.2341053,3.28744 14.2930526,3.11188 L15.1351579,0.59188 C15.1856842,0.44068 15.1461053,0.27436 15.0332632,0.1618 L15.0349474,0.16264 Z" />
      </g>
    </svg>
  );
}

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

Market.defaultProps = Icon.defaultProps;
