react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.27 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 WechatIcon = function (_Component) {
_inherits(WechatIcon, _Component);
function WechatIcon(props) {
_classCallCheck(this, WechatIcon);
return _possibleConstructorReturn(this, (WechatIcon.__proto__ || Object.getPrototypeOf(WechatIcon)).call(this, props));
}
_createClass(WechatIcon, [{
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-wechat-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M9.5 4C5.358 4 2 6.686 2 10c0 1.885 1.082 3.556 2.781 4.656L4 17l2.5-1.5c.894.313 1.87.49 2.906.5A5.231 5.231 0 0 1 9 14c0-3.314 3.134-6 7-6 .19 0 .377.019.563.031C15.541 5.688 12.777 4 9.5 4zm-3 2.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM16 9c-3.314 0-6 2.239-6 5s2.686 5 6 5c.666 0 1.308-.083 1.906-.25L20 20l-.625-1.875C20.95 17.224 22 15.712 22 14c0-2.761-2.686-5-6-5zm-2 2.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z' })
);
}
}]);
return WechatIcon;
}(_react.Component);
WechatIcon.defaultProps = {
className: ''
};
exports.default = WechatIcon;