UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.61 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 DiscordIcon = function (_Component) { _inherits(DiscordIcon, _Component); function DiscordIcon(props) { _classCallCheck(this, DiscordIcon); return _possibleConstructorReturn(this, (DiscordIcon.__proto__ || Object.getPrototypeOf(DiscordIcon)).call(this, props)); } _createClass(DiscordIcon, [{ 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-discord-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M22 24l-5.25-5 .625 2H4.5A2.5 2.5 0 0 1 2 18.5v-15A2.5 2.5 0 0 1 4.5 1h15A2.5 2.5 0 0 1 22 3.5V24zM12 6.8c-2.685 0-4.56 1.15-4.56 1.15 1.031-.921 2.828-1.468 2.828-1.468l-.172-.156c-1.687.03-3.218 1.203-3.218 1.203-1.72 3.593-1.61 6.687-1.61 6.687 1.406 1.813 3.485 1.688 3.485 1.688l.703-.907c-1.25-.265-2.032-1.375-2.032-1.375S9.3 14.9 12 14.9c2.7 0 4.576-1.278 4.576-1.278s-.782 1.11-2.032 1.375l.703.907s2.079.125 3.485-1.688c0 0 .11-3.094-1.61-6.687 0 0-1.53-1.172-3.218-1.203l-.172.156s1.797.547 2.828 1.469c0 0-1.875-1.151-4.56-1.151zm-2.069 3.789c.652 0 1.178.571 1.166 1.268 0 .697-.514 1.269-1.166 1.269-.64 0-1.165-.572-1.165-1.269S9.28 10.59 9.93 10.59zm4.172 0c.651 0 1.166.571 1.166 1.268 0 .697-.515 1.269-1.166 1.269-.64 0-1.166-.572-1.166-1.269s.514-1.268 1.166-1.268z' }) ); } }]); return DiscordIcon; }(_react.Component); DiscordIcon.defaultProps = { className: '' }; exports.default = DiscordIcon;