UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.55 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 SlackIcon = function (_Component) { _inherits(SlackIcon, _Component); function SlackIcon(props) { _classCallCheck(this, SlackIcon); return _possibleConstructorReturn(this, (SlackIcon.__proto__ || Object.getPrototypeOf(SlackIcon)).call(this, props)); } _createClass(SlackIcon, [{ 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-slack-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M10.233 11.161l2.673-.895.861 2.573-2.673.895-.861-2.573zm7.456 2.552a1.037 1.037 0 0 0-.659-1.967l-1.296.434-.862-2.573 1.296-.434a1.037 1.037 0 0 0-.658-1.966l-1.296.434-.45-1.342a1.037 1.037 0 1 0-1.966.66l.449 1.34-2.673.896-.45-1.342a1.037 1.037 0 0 0-1.966.659l.45 1.341-1.297.434a1.037 1.037 0 0 0 .303 2.02l.356-.053 1.296-.434.862 2.573-1.296.434a1.037 1.037 0 0 0 .302 2.02l.356-.053 1.296-.435.45 1.342c.142.424.533.696.956.707l.356-.053c.543-.182.836-.77.654-1.313l-.449-1.341 2.673-.896.45 1.342c.142.425.532.696.956.707l.356-.053c.543-.182.836-.77.654-1.313l-.45-1.341 1.297-.434zm3.477-4.463c2.062 6.874.458 9.853-6.416 11.916-6.874 2.062-9.853.458-11.916-6.416C.772 7.876 2.376 4.897 9.25 2.834c6.874-2.062 9.853-.458 11.916 6.416z' }) ); } }]); return SlackIcon; }(_react.Component); SlackIcon.defaultProps = { className: '' }; exports.default = SlackIcon;