UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.33 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 AppleIcon = function (_Component) { _inherits(AppleIcon, _Component); function AppleIcon(props) { _classCallCheck(this, AppleIcon); return _possibleConstructorReturn(this, (AppleIcon.__proto__ || Object.getPrototypeOf(AppleIcon)).call(this, props)); } _createClass(AppleIcon, [{ 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-apple-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M18.707 19.518c-.831 1.22-1.691 2.431-3.049 2.457-1.335.025-1.764-.794-3.288-.794-1.526 0-2.004.768-3.265.819-1.31.05-2.307-1.317-3.145-2.53-1.712-2.482-3.02-7.018-1.262-10.079.87-1.52 2.43-2.482 4.12-2.507 1.287-.024 2.503.87 3.289.87.787 0 2.263-1.073 3.814-.916.65.027 2.472.263 3.643 1.98-.093.062-2.176 1.277-2.15 3.81.025 3.025 2.642 4.031 2.673 4.045-.024.07-.419 1.435-1.38 2.845zm-5.7-16.003C13.726 2.67 14.94 2.042 15.942 2c.128 1.173-.343 2.348-1.038 3.194-.696.845-1.836 1.504-2.954 1.416-.152-1.148.411-2.345 1.057-3.095z' }) ); } }]); return AppleIcon; }(_react.Component); AppleIcon.defaultProps = { className: '' }; exports.default = AppleIcon;