react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.53 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 CakeVariantIcon = function (_Component) {
_inherits(CakeVariantIcon, _Component);
function CakeVariantIcon(props) {
_classCallCheck(this, CakeVariantIcon);
return _possibleConstructorReturn(this, (CakeVariantIcon.__proto__ || Object.getPrototypeOf(CakeVariantIcon)).call(this, props));
}
_createClass(CakeVariantIcon, [{
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-cake-variant-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M12.002 6.001A2 2 0 0 0 14 4c0-.38-.098-.728-.288-1.03L12.002 0l-1.715 2.969c-.19.302-.287.65-.287 1.03C10 5.098 10.899 6 12.002 6zm4.6 9.99l-1.07-1.07-1.083 1.07c-1.299 1.299-3.58 1.309-4.889 0l-1.069-1.07-1.088 1.07a3.457 3.457 0 0 1-2.442 1.012 3.517 3.517 0 0 1-1.964-.612v4.61A1.01 1.01 0 0 0 4 22.003H20c.552 0 1.001-.456 1.001-1.002v-4.61a3.514 3.514 0 0 1-1.963.612A3.437 3.437 0 0 1 16.6 15.99zM17.996 9h-5V7.002h-1.996V9h-5a3.002 3.002 0 0 0-3.004 3.003v1.538c0 1.079.884 1.958 1.964 1.958.518 0 1.02-.2 1.377-.567l2.143-2.133 2.129 2.133c.738.738 2.031.738 2.769 0l2.139-2.133 2.133 2.133a1.962 1.962 0 0 0 3.34-1.391v-1.537a2.986 2.986 0 0 0-2.994-3.004z' })
);
}
}]);
return CakeVariantIcon;
}(_react.Component);
CakeVariantIcon.defaultProps = {
className: ''
};
exports.default = CakeVariantIcon;