react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.35 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 PopcornIcon = function (_Component) {
_inherits(PopcornIcon, _Component);
function PopcornIcon(props) {
_classCallCheck(this, PopcornIcon);
return _possibleConstructorReturn(this, (PopcornIcon.__proto__ || Object.getPrototypeOf(PopcornIcon)).call(this, props));
}
_createClass(PopcornIcon, [{
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-popcorn-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M7 22H4.75s-.75 0-.936-1.352L2.043 3.81 2 3.5C2 2.672 2.895 2 4 2c1.102 0 1.997.669 2 1.495C6.003 2.67 6.898 2 8 2c1.105 0 2 .672 2 1.5 0-.828.895-1.5 2-1.5 1.091 0 1.979.656 1.999 1.508L14 3.5c0-.828.895-1.5 2-1.5 1.102 0 1.997.669 2 1.495C18.003 2.67 18.898 2 20 2c1.105 0 2 .672 2 1.5l-.043.31-1.77 16.838C20 22 19.25 22 19.25 22H7zM17.852 4.932C17.553 4.385 16.837 4 16 4c-.807 0-1.636.358-2.024.875L13.778 20h2.88l1.194-15.068zm-7.828-.057C9.636 4.358 8.807 4 8 4c-.837 0-1.553.385-1.852.932L7.342 20h2.88l-.198-15.125z' })
);
}
}]);
return PopcornIcon;
}(_react.Component);
PopcornIcon.defaultProps = {
className: ''
};
exports.default = PopcornIcon;