'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (_ref) {
  var _ref$className = _ref.className,
      className = _ref$className === undefined ? 'chevron' : _ref$className,
      open = _ref.open;
  return _react2.default.createElement(
    'span',
    { className: className },
    _react2.default.createElement(
      'svg',
      { viewBox: '0 0 16 16', preserveAspectRatio: 'xMidYMid meet', focusable: 'false',
        width: 16,
        height: 16 },
      _react2.default.createElement(
        'defs',
        null,
        _react2.default.createElement(
          'g',
          { id: 'open' },
          _react2.default.createElement('path', { d: 'M2.4 6.2l5.5 5.5 5.5-5.5', fill: 'black' })
        ),
        _react2.default.createElement(
          'g',
          { id: 'closed' },
          _react2.default.createElement('path', { strokeLinejoin: 'round', d: 'M6.2 13.2l5.4-5.5-5.5-5.5', fill: 'black' })
        )
      ),
      open && _react2.default.createElement('use', { href: '#open' }),
      !open && _react2.default.createElement('use', { href: '#closed' })
    )
  );
};