UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.68 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 WikipediaIcon = function (_Component) { _inherits(WikipediaIcon, _Component); function WikipediaIcon(props) { _classCallCheck(this, WikipediaIcon); return _possibleConstructorReturn(this, (WikipediaIcon.__proto__ || Object.getPrototypeOf(WikipediaIcon)).call(this, props)); } _createClass(WikipediaIcon, [{ 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-wikipedia-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M14.97 18.95l-2.56-6.032c-1.015 1.99-2.14 4.06-3.102 6.03a4.45 4.45 0 0 1-.465-.003c-1.47-3.431-2.996-6.84-4.473-10.27-.343-.838-1.543-2.186-2.364-2.178 0-.098-.005-.315-.006-.446l5.063-.003-.004.44c-.594.028-1.622.407-1.356 1.064.714 1.54 3.24 7.509 3.923 9.024.477-.933 1.807-3.419 2.355-4.47-.43-.88-1.849-4.171-2.274-5-.321-.54-1.126-.606-1.747-.616 0-.138.008-.245.005-.434l4.45.014v.404c-.602.016-1.173.24-.914.816.598 1.243.947 2.128 1.498 3.277a87.2 87.2 0 0 0 1.504-3.156c.259-.648-.128-.89-1.213-.92.015-.106.005-.32.014-.422 1.384-.005 3.474-.01 3.844-.016l.002.42c-.706.028-1.437.405-1.819.989l-1.85 3.838c.203.508 1.982 4.461 2.17 4.9l3.826-8.832c-.272-.715-1.14-.875-1.48-.883.002-.113.002-.287.003-.432l3.995.03.005.02-.007.38c-.876.027-1.418.496-1.742 1.264-.796 1.798-3.23 7.493-4.854 11.205-.002.002-.425-.001-.426-.002z' }) ); } }]); return WikipediaIcon; }(_react.Component); WikipediaIcon.defaultProps = { className: '' }; exports.default = WikipediaIcon;