react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.61 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 VkIcon = function (_Component) {
_inherits(VkIcon, _Component);
function VkIcon(props) {
_classCallCheck(this, VkIcon);
return _possibleConstructorReturn(this, (VkIcon.__proto__ || Object.getPrototypeOf(VkIcon)).call(this, props));
}
_createClass(VkIcon, [{
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-vk-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M19.544 14.6c1.547 1.435 1.87 2.128 1.917 2.22.641 1.058-.704 1.143-.704 1.143l-2.58.037s-.556.106-1.281-.392c-.964-.662-1.875-2.383-2.584-2.156-.716.228-.694 1.775-.694 1.775s.005.223-.16.397c-.18.19-.524.116-.524.116H11.78s-2.547.265-4.788-2.07C4.55 13.126 2.39 8.127 2.39 8.127s-.122-.302.01-.466c.154-.18.567-.175.567-.175l2.76-.011s.258.047.444.18a.89.89 0 0 1 .239.328s.445 1.128 1.037 2.145c1.15 1.992 1.684 2.426 2.076 2.214.572-.311.403-2.812.403-2.812s.01-.91-.29-1.313c-.228-.312-.664-.409-.853-.429-.16-.022.094-.382.428-.546.498-.243 1.372-.254 2.41-.243.805.004 1.038.058 1.35.132.954.227.63 1.117.63 3.241 0 .684-.122 1.642.366 1.96.212.132.731.021 2.023-2.177.609-1.038 1.07-2.261 1.07-2.261s.1-.217.255-.313c.159-.095.375-.064.375-.064l2.903-.02s.873-.1 1.017.291c.148.412-.33 1.376-1.516 2.954-1.948 2.601-2.165 2.358-.55 3.857z' })
);
}
}]);
return VkIcon;
}(_react.Component);
VkIcon.defaultProps = {
className: ''
};
exports.default = VkIcon;