react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.52 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 PlaystationIcon = function (_Component) {
_inherits(PlaystationIcon, _Component);
function PlaystationIcon(props) {
_classCallCheck(this, PlaystationIcon);
return _possibleConstructorReturn(this, (PlaystationIcon.__proto__ || Object.getPrototypeOf(PlaystationIcon)).call(this, props));
}
_createClass(PlaystationIcon, [{
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-playstation-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M9.492 4.271c1.386.257 3.408.866 4.494 1.232 2.765.949 3.701 2.128 3.701 4.788 0 2.595-1.601 3.576-3.634 2.595V8.055c0-.566-.104-1.089-.638-1.237-.405-.13-.66.248-.66.813V19.73l-3.263-1.035V4.271zm3.882 13.349l5.25-1.87c.593-.213.685-.514.203-.672-.485-.16-1.361-.113-1.956.1l-3.497 1.231v-1.96l.202-.068s1.01-.357 2.432-.515c1.42-.156 3.16.02 4.525.538 1.54.488 1.714 1.204 1.323 1.698-.392.493-1.35.846-1.35.846l-7.132 2.56V17.62zm-9.868-.197c-1.58-.445-1.844-1.371-1.125-1.905.668-.494 1.799-.866 1.799-.866l4.679-1.663v1.894L5.493 16.09c-.597.215-.687.516-.205.674.485.159 1.36.114 1.956-.1l1.615-.586v1.696l-.323.054a10.564 10.564 0 0 1-5.03-.404z' })
);
}
}]);
return PlaystationIcon;
}(_react.Component);
PlaystationIcon.defaultProps = {
className: ''
};
exports.default = PlaystationIcon;