UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.63 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 NfcIcon = function (_Component) { _inherits(NfcIcon, _Component); function NfcIcon(props) { _classCallCheck(this, NfcIcon); return _possibleConstructorReturn(this, (NfcIcon.__proto__ || Object.getPrototypeOf(NfcIcon)).call(this, props)); } _createClass(NfcIcon, [{ 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-nfc-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M10.59 7.662s.597-.271.976.162c.38.434 1.355 2.114 1.355 3.794 0 1.68-.434 3.469-.867 4.065-.434.596-.867.596-1.193.38-.325-.218-5.365-4.065-5.636-4.174-.271-.108-.38.163-.108 1.626.27 1.463-.163 1.897-.542 1.951-.38.054-1.518-.271-1.572-3.306-.054-3.035.759-3.523 1.138-3.523.713 0 6.126 4.887 6.504 4.824.325-.055.487-2.114-.163-3.74-.704-1.76.108-2.06.108-2.06zm8.712-3.035c1.82 3.615 1.71 7.033 1.695 7.394.015.314.126 3.737-1.695 7.352 0 0-.474.542-1.178.217-.705-.325-.461-1.192-.461-1.192s1.475-2.848 1.436-6.346v-.054c.039-3.499-1.436-6.396-1.436-6.396s-.244-.867.46-1.192c.705-.325 1.18.217 1.18.217zm-3.53 1.626c1.484 2.71 1.384 5.407 1.37 5.768.014.314.114 2.903-1.368 5.832 0 0-.475.542-1.18.217-.704-.325-.46-1.192-.46-1.192s.954-1.358 1.11-4.826v-.054c-.101-3.469-1.112-4.77-1.112-4.77s-.244-.867.46-1.192c.705-.325 1.18.217 1.18.217z' }) ); } }]); return NfcIcon; }(_react.Component); NfcIcon.defaultProps = { className: '' }; exports.default = NfcIcon;