react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.46 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 GoogleCardboardIcon = function (_Component) {
_inherits(GoogleCardboardIcon, _Component);
function GoogleCardboardIcon(props) {
_classCallCheck(this, GoogleCardboardIcon);
return _possibleConstructorReturn(this, (GoogleCardboardIcon.__proto__ || Object.getPrototypeOf(GoogleCardboardIcon)).call(this, props));
}
_createClass(GoogleCardboardIcon, [{
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-google-cardboard-icon ' + this.props.className }),
_react2.default.createElement('path', { fillRule: 'evenodd', d: 'M20.742 6.001H3.204c-.65 0-1.202.566-1.202 1.269v10.46c0 .703.552 1.269 1.23 1.269h4.79a1.23 1.23 0 0 0 1.138-.787l1.391-3.47c.24-.587.796-.997 1.451-.997.65 0 1.21.41 1.445.996l1.392 3.471c.186.464.625.787 1.114.787h4.79c.707 0 1.26-.566 1.26-1.269V7.27c0-.702-.553-1.269-1.26-1.269zm-13.52 8.574C5.995 14.575 5 13.55 5 12.285 5 11.02 5.996 10 7.221 10c1.222 0 2.213 1.02 2.213 2.285 0 1.265-.991 2.29-2.213 2.29zm9.56 0c-1.226 0-2.217-1.025-2.217-2.29 0-1.26.991-2.285 2.217-2.285S19 11.025 19 12.285c0 1.265-.991 2.29-2.216 2.29z' })
);
}
}]);
return GoogleCardboardIcon;
}(_react.Component);
GoogleCardboardIcon.defaultProps = {
className: ''
};
exports.default = GoogleCardboardIcon;