react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.31 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 HeartPulseIcon = function (_Component) {
_inherits(HeartPulseIcon, _Component);
function HeartPulseIcon(props) {
_classCallCheck(this, HeartPulseIcon);
return _possibleConstructorReturn(this, (HeartPulseIcon.__proto__ || Object.getPrototypeOf(HeartPulseIcon)).call(this, props));
}
_createClass(HeartPulseIcon, [{
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-heart-pulse-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M7.5 4A5.5 5.5 0 0 0 2 9.5c0 .52.088 1.019.219 1.5H6.3l1.27-3.367c.305-.807 1.484-.883 1.864 0L11.5 13l.588-1.424a.985.985 0 0 1 .912-.58h8.781c.13-.481.219-.98.219-1.5a5.5 5.5 0 0 0-5.5-5.5A5.507 5.507 0 0 0 12 6.34a5.506 5.506 0 0 0-4.5-2.344V4zM3 12.5c-.554 0-1 .446-1 1s.446 1 1 1h2.438L11 20c1 .898 1 .898 2 0l5.563-5.5H21c.554 0 1-.446 1-1s-.446-1-1-1h-7.6l-.926 2.3c-.406 1.01-1.552.869-1.92.026L8.5 9.5l-.958 2.328c-.156.377-.492.672-.942.672H3z' })
);
}
}]);
return HeartPulseIcon;
}(_react.Component);
HeartPulseIcon.defaultProps = {
className: ''
};
exports.default = HeartPulseIcon;