react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.5 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 LastfmIcon = function (_Component) {
_inherits(LastfmIcon, _Component);
function LastfmIcon(props) {
_classCallCheck(this, LastfmIcon);
return _possibleConstructorReturn(this, (LastfmIcon.__proto__ || Object.getPrototypeOf(LastfmIcon)).call(this, props));
}
_createClass(LastfmIcon, [{
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-lastfm-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M18.007 17.931c-2.083-.008-3.194-1.034-3.965-2.841l-.22-.493-1.902-4.366c-.629-1.545-2.196-2.59-3.962-2.59-2.39 0-4.327 1.953-4.327 4.36S5.57 16.36 7.958 16.36a4.328 4.328 0 0 0 3.84-2.34l.77 1.786A5.935 5.935 0 0 1 7.959 18C4.668 18 2 15.316 2 12c0-3.312 2.669-6 5.958-6 2.484 0 4.49 1.335 5.509 3.702.077.183 1.077 2.538 1.95 4.542.54 1.24 1 2.063 2.494 2.114 1.469.05 2.476-.849 2.476-1.986 0-1.111-.767-1.378-2.065-1.812-2.33-.774-3.535-1.55-3.535-3.412 0-1.816 1.226-3.027 3.22-3.027 1.3 0 2.237.582 2.886 1.742l-1.273.655c-.482-.676-1.011-.943-1.684-.943-.936 0-1.603.655-1.603 1.527 0 1.237 1.098 1.424 2.636 1.932 2.069.678 3.031 1.453 3.031 3.389 0 2.032-1.731 3.512-3.993 3.508z' })
);
}
}]);
return LastfmIcon;
}(_react.Component);
LastfmIcon.defaultProps = {
className: ''
};
exports.default = LastfmIcon;