import PropTypes from 'prop-types';
import React from 'react';

import { darkBlue } from '../styleguide';

const BlocLogo = ({ color, size }) => (
  <svg
    width={size}
    height={size}
    viewBox="0 0 48 48"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
  >
    <defs />
    <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
      <g
        transform="translate(8.000000, 0.000000)"
        fill={color}
        fillRule="nonzero"
      >
        <path d="M25.5973548,22.56 C26.2754516,22.3552 30.5537419,19.5413333 30.5537419,13.7152 C30.5569355,3.6352 23.1553548,0 15.4141935,0 L1.39664516,0 C1.02512903,0 0.670645161,0.1472 0.407709677,0.4128 C0.146903226,0.677333333 0,1.0368 0,1.4112 L0,46.592 C0,46.9653333 0.146903226,47.3248 0.40983871,47.5882667 C0.671709677,47.8528 1.02725806,48.0010667 1.39770968,48 L17.1120968,48 C26.0753226,48 33,42.24 33,33.808 C33,25.1808 26.2786452,22.6976 25.5973548,22.56 Z M8.51612903,7.91466667 C8.51612903,7.6672 8.712,7.46666667 8.95258065,7.46666667 L15.3673548,7.46666667 C19.2922258,7.46666667 22.3548387,9.17333333 22.3548387,13.3333333 C22.3548387,17.4933333 19.8266129,19.2 15.3673548,19.2 L8.95258065,19.2 C8.712,19.2 8.51612903,18.9994667 8.51612903,18.752 L8.51612903,7.91466667 Z M17.4495484,40.5333333 L8.976,40.5333333 C8.72264516,40.5333333 8.51612903,40.3306667 8.51612903,40.0810667 L8.51612903,28.2048 C8.51080645,28.0821333 8.55658065,27.9626667 8.64387097,27.8741333 C8.72903226,27.7845333 8.84825806,27.7354667 8.97387097,27.7333333 L18.6822581,27.7333333 C22.4453226,27.7333333 25.676129,30.7178667 25.544129,34.4256 C25.3993548,38.7584 21.9567097,40.5333333 17.4495484,40.5333333 Z" />
      </g>
    </g>
  </svg>
);

BlocLogo.propTypes = {
  color: PropTypes.string,
  size: PropTypes.number,
};

BlocLogo.defaultProps = {
  color: darkBlue,
  size: 24,
};

module.exports = BlocLogo;
