react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.09 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 CarrotIcon = function (_Component) {
_inherits(CarrotIcon, _Component);
function CarrotIcon(props) {
_classCallCheck(this, CarrotIcon);
return _possibleConstructorReturn(this, (CarrotIcon.__proto__ || Object.getPrototypeOf(CarrotIcon)).call(this, props));
}
_createClass(CarrotIcon, [{
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-carrot-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M16 10l-.2 1h-2.3a.5.5 0 0 0 0 1h2.1l-1 5h-2.1a.5.5 0 0 0 0 1h1.9l-.4 2a2 2 0 1 1-4 0l-1-5h1.5a.5.5 0 0 0 0-1H8.8L8 10c0-1.197.935-2.23 2.287-2.712L8.9 5.277a1 1 0 0 1 1.646-1.136L11 4.8V3a1 1 0 1 1 2 0v2.284l1.477-1.742a1 1 0 1 1 1.526 1.293l-2.13 2.513C15.137 7.852 16 8.851 16 10z' })
);
}
}]);
return CarrotIcon;
}(_react.Component);
CarrotIcon.defaultProps = {
className: ''
};
exports.default = CarrotIcon;