react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.26 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 MapMarkerRadiusIcon = function (_Component) {
_inherits(MapMarkerRadiusIcon, _Component);
function MapMarkerRadiusIcon(props) {
_classCallCheck(this, MapMarkerRadiusIcon);
return _possibleConstructorReturn(this, (MapMarkerRadiusIcon.__proto__ || Object.getPrototypeOf(MapMarkerRadiusIcon)).call(this, props));
}
_createClass(MapMarkerRadiusIcon, [{
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-map-marker-radius-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M12 1.998c3.312 0 6 2.664 6 5.95 0 4.463-6 11.05-6 11.05s-6-6.587-6-11.05c0-3.286 2.686-5.95 6-5.95zM12 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm8 13c0 2.21-3.582 4-8 4s-8-1.79-8-4c0-1.289 1.22-2.435 3.113-3.167l.633.904C6.666 17.19 6 17.812 6 18.5c0 1.38 2.686 2.5 6 2.5s6-1.12 6-2.5c0-.688-.667-1.31-1.746-1.763l.633-.904C18.781 16.565 20 17.711 20 19z' })
);
}
}]);
return MapMarkerRadiusIcon;
}(_react.Component);
MapMarkerRadiusIcon.defaultProps = {
className: ''
};
exports.default = MapMarkerRadiusIcon;