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

export default function Bank({
  fill,
  style: styleProp,
  ...rest // eslint-disable-line comma-dangle
}) {
  const style = {
    ...styleProp,
    ...Icon.defaultProps.style,
  };
  return (
    <svg style={style} {...rest}>
      <g stroke="none" fillRule="nonzero" fill={fill}>
        <path d="M5.59903038,17.0034134 C5.8799999,17.0034134 6.10803314,17.2274617 6.10803314,17.5035212 C6.10803314,17.7795807 5.8799999,18.0036289 5.59903038,18.0036289 L1.52700828,18.0036289 C1.24603876,18.0036289 1.01800552,17.7795807 1.01800552,17.5035212 C1.01800552,17.2274617 1.24603876,17.0034134 1.52700828,17.0034134 L2.03601105,17.0034134 L2.03601105,8.00147395 L1.52700828,8.00147395 C1.24603876,8.00147395 1.01800552,7.77742568 1.01800552,7.5013662 C1.01800552,7.22530672 1.24603876,7.00125845 1.52700828,7.00125845 L5.59903038,7.00125845 C5.8799999,7.00125845 6.10803314,7.22530672 6.10803314,7.5013662 C6.10803314,7.77742568 5.8799999,8.00147395 5.59903038,8.00147395 L5.09002761,8.00147395 L5.09002761,17.0034134 L5.59903038,17.0034134 Z M3.05401657,17.0034134 L4.07202209,17.0034134 L4.07202209,8.00147395 L3.05401657,8.00147395 L3.05401657,17.0034134 Z" />
        <path d="M11.6810248,17.0034134 C11.9619943,17.0034134 12.1900275,17.2274617 12.1900275,17.5035212 C12.1900275,17.7795807 11.9619943,18.0036289 11.6810248,18.0036289 L7.60900266,18.0036289 C7.32803314,18.0036289 7.0999999,17.7795807 7.0999999,17.5035212 C7.0999999,17.2274617 7.32803314,17.0034134 7.60900266,17.0034134 L8.11800543,17.0034134 L8.11800543,8.00147395 L7.60900266,8.00147395 C7.32803314,8.00147395 7.0999999,7.77742568 7.0999999,7.5013662 C7.0999999,7.22530672 7.32803314,7.00125845 7.60900266,7.00125845 L11.6810248,7.00125845 C11.9619943,7.00125845 12.1900275,7.22530672 12.1900275,7.5013662 C12.1900275,7.77742568 11.9619943,8.00147395 11.6810248,8.00147395 L11.172022,8.00147395 L11.172022,17.0034134 L11.6810248,17.0034134 Z M9.13601095,17.0034134 L10.1540165,17.0034134 L10.1540165,8.00147395 L9.13601095,8.00147395 L9.13601095,17.0034134 Z" />
        <path d="M17.6810252,17.0034134 C17.9619948,17.0034134 18.190028,17.2274617 18.190028,17.5035212 C18.190028,17.7795807 17.9619948,18.0036289 17.6810252,18.0036289 L13.6090031,18.0036289 C13.3280336,18.0036289 13.1000004,17.7795807 13.1000004,17.5035212 C13.1000004,17.2274617 13.3280336,17.0034134 13.6090031,17.0034134 L14.1180059,17.0034134 L14.1180059,8.00147395 L13.6090031,8.00147395 C13.3280336,8.00147395 13.1000004,7.77742568 13.1000004,7.5013662 C13.1000004,7.22530672 13.3280336,7.00125845 13.6090031,7.00125845 L17.6810252,7.00125845 C17.9619948,7.00125845 18.190028,7.22530672 18.190028,7.5013662 C18.190028,7.77742568 17.9619948,8.00147395 17.6810252,8.00147395 L17.1720225,8.00147395 L17.1720225,17.0034134 L17.6810252,17.0034134 Z M15.1360114,17.0034134 L16.154017,17.0034134 L16.154017,8.00147395 L15.1360114,8.00147395 L15.1360114,17.0034134 Z" />
        <path d="M18.8331022,20.00406 L0.509002761,20.00406 C0.228033237,20.00406 0,19.7800117 0,19.5039522 C0,19.2278927 0.228033237,19.0038445 0.509002761,19.0038445 L18.8331022,19.0038445 C19.1140717,19.0038445 19.3421049,19.2278927 19.3421049,19.5039522 C19.3421049,19.7800117 19.1140717,20.00406 18.8331022,20.00406" />
        <path d="M3.30149371,5.00082745 L16.0397968,5.00082745 L9.67013626,1.08998484 L3.30047571,5.00082745 L3.30149371,5.00082745 Z M17.8151985,6.00104295 L1.52711008,6.00104295 C1.30009485,6.00104295 1.10056577,5.85301105 1.03744943,5.63896494 C0.974333086,5.42491882 1.06391757,5.19486925 1.25733862,5.07684383 L9.4013828,0.0757663241 C9.5662997,-0.0252554414 9.77600884,-0.0252554414 9.94092573,0.0757663241 L18.0849699,5.07684383 C18.277373,5.19486925 18.3669574,5.4239186 18.3048591,5.63896494 C18.2427608,5.85401127 18.0422137,6.00104295 17.8151985,6.00104295 Z" />
      </g>
    </svg>
  );
}

Bank.propTypes = {
  ...Icon.propTypes,
  fill: PropTypes.string,
};

Bank.defaultProps = {
  ...Icon.defaultProps,
  viewBox: '0 0 20 21',
};
