react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.21 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 NullIcon = function (_Component) {
_inherits(NullIcon, _Component);
function NullIcon(props) {
_classCallCheck(this, NullIcon);
return _possibleConstructorReturn(this, (NullIcon.__proto__ || Object.getPrototypeOf(NullIcon)).call(this, props));
}
_createClass(NullIcon, [{
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-null-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M12 2c1.848 0 3.55.783 4.904 2.099l1.696-2.17 1.576 1.23-1.973 2.526C19.326 7.407 20 9.605 20 12c0 5.523-3.582 10-8 10-1.848 0-3.55-.783-4.904-2.099L5.4 22.071l-1.576-1.23 1.973-2.526C4.674 16.593 4 14.395 4 12 4 6.477 7.582 2 12 2zm0 2c-3.314 0-6 3.582-6 8 0 1.728.41 3.328 1.11 4.636l8.563-10.962C14.658 4.624 13.383 4 12 4zm0 16c3.314 0 6-3.582 6-8 0-1.728-.41-3.328-1.11-4.636L8.328 18.326C9.342 19.376 10.617 20 12 20z' })
);
}
}]);
return NullIcon;
}(_react.Component);
NullIcon.defaultProps = {
className: ''
};
exports.default = NullIcon;