UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.18 kB
'use strict'; 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 NinjaIcon = function (_Component) { _inherits(NinjaIcon, _Component); function NinjaIcon(props) { _classCallCheck(this, NinjaIcon); return _possibleConstructorReturn(this, (NinjaIcon.__proto__ || Object.getPrototypeOf(NinjaIcon)).call(this, props)); } _createClass(NinjaIcon, [{ 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-ninja-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M7.75 13a1.18 1.18 0 0 1 .42-.92 5.72 5.72 0 0 1 2.08.91 1.25 1.25 0 0 1-2.5.01zm6 0a5.72 5.72 0 0 1 2.08-.91c.271.228.425.566.42.92a1.25 1.25 0 1 1-2.5 0V13zM12 9a15.76 15.76 0 0 0-7.93 2L4 12a8 8 0 0 0 .84 3.54A46.7 46.7 0 0 1 12 15a46.7 46.7 0 0 1 7.16.54A8 8 0 0 0 20 12l-.07-1A15.76 15.76 0 0 0 12 9zm0-7c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z' }) ); } }]); return NinjaIcon; }(_react.Component); NinjaIcon.defaultProps = { className: '' }; exports.default = NinjaIcon;