react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var RabbitIcon = function (_Component) {
_inherits(RabbitIcon, _Component);
function RabbitIcon(props) {
_classCallCheck(this, RabbitIcon);
return _possibleConstructorReturn(this, (RabbitIcon.__proto__ || Object.getPrototypeOf(RabbitIcon)).call(this, props));
}
_createClass(RabbitIcon, [{
key: 'render',
value: function render() {
return _react2.default.createElement(
'svg',
_extends({ xmlns: 'http://www.w3.org/2000/svg', width: '24', height: '24', baseProfile: 'full', viewBox: '0 0 24.00 24.00' }, this.props, { className: 'material material-rabbit-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M22 17.5a1.5 1.5 0 0 1-2.83.694c-.447.976-.528 2.01-.382 2.74C19 22 18 22 18 22h-8c-1 0-2 0-2.167-.5-.166-.5.5-1.5 2.167-2l.878-.205C5.822 15.765 12 14 12 14c-2-1-4 .25-4 1.25 0 2 .456 2.712.25 3C7 20 6 22 6 22H3.5C3 19 6 21 6 19c0-1 1.313-2.144.5-3.5-.86-1.434-.569-2.704-.164-3.526C5.393 11.912 3.703 11.703 3 11c-1-1 2-5 4-5 .684 0 1.134.117 1.51.35l1.176-3.394a1 1 0 0 1 1.89.655l-.757 2.184 2.008-1.159a1 1 0 0 1 1 1.732l-3.44 1.986L11 9c2 2 4.64.01 6.5 1.25 3.861 2.574 3.788 4.631 3.245 5.77A1.5 1.5 0 0 1 22 17.5zM5.73 7.936c-.457.309-.786.82-.477 1.278.31.458 1.138.439 1.596.13.458-.309.371-.79.062-1.248-.308-.458-.723-.469-1.18-.16z' })
);
}
}]);
return RabbitIcon;
}(_react.Component);
RabbitIcon.defaultProps = {
className: ''
};
exports.default = RabbitIcon;