UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.54 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 WhatsappIcon = function (_Component) { _inherits(WhatsappIcon, _Component); function WhatsappIcon(props) { _classCallCheck(this, WhatsappIcon); return _possibleConstructorReturn(this, (WhatsappIcon.__proto__ || Object.getPrototypeOf(WhatsappIcon)).call(this, props)); } _createClass(WhatsappIcon, [{ 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-whatsapp-icon ' + this.props.className }), _react2.default.createElement('path', { fillRule: 'evenodd', d: 'M16.748 13.956c.244.134.407.202.466.308.058.106.04.604-.19 1.177-.229.573-1.265 1.095-1.723 1.12-.457.024-.47.356-2.96-.734-2.491-1.091-3.99-3.744-4.108-3.914-.118-.17-.964-1.386-.919-2.61.046-1.223.711-1.801.948-2.04a.913.913 0 0 1 .675-.287l.476.038c.145.006.355-.07.544.436l.698 1.875c.057.126.093.273.004.436l-.264.405-.39.422c-.129.12-.264.249-.128.503.136.255.605 1.087 1.32 1.774.917.883 1.709 1.176 1.953 1.309.244.134.39.12.541-.042l.824-.945c.175-.243.34-.195.564-.103l1.669.872zM12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10a9.953 9.953 0 0 1-5.35-1.55L2 22l1.55-4.65A9.953 9.953 0 0 1 2 12C2 6.477 6.477 2 12 2zm0 2a8 8 0 0 0-6.537 12.612L4.5 19.5l2.888-.963A8 8 0 1 0 12 4z' }) ); } }]); return WhatsappIcon; }(_react.Component); WhatsappIcon.defaultProps = { className: '' }; exports.default = WhatsappIcon;