UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.48 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 FoursquareIcon = function (_Component) { _inherits(FoursquareIcon, _Component); function FoursquareIcon(props) { _classCallCheck(this, FoursquareIcon); return _possibleConstructorReturn(this, (FoursquareIcon.__proto__ || Object.getPrototypeOf(FoursquareIcon)).call(this, props)); } _createClass(FoursquareIcon, [{ 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-foursquare-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M17 5l-.427 2.482c-.054.253-.371.518-.666.518H12c-.468 0-1.053.319-1.053.786l-.002.415c0 .468.587.799 1.055.799h3.277c.33 0 .654.362.583.715-.072.353-.915 2.568-.956 2.761-.04.194-.261.524-.654.524h-2.879c-.524 0-.683.069-1.033.504-.351.437-3.07 3.593-3.07 3.593C7.236 18.134 7 18.04 7 18V5c0-.298.61-1 1-1h8.5c.315 0 .58.613.5 1zm-.008 9.448c.12-.482 1.785-7.729 2.231-9.899M17.576 2H6.906C5.433 2 5 3.107 5 3.805v16.954c0 .785.422 1.077.66 1.173.237.096.891.177 1.284-.276 0 0 4.708-5.439 4.794-5.525C11.87 16 11.87 16 12 16h3.26c1.369 0 1.59-.977 1.732-1.552.12-.482 1.785-7.729 2.231-9.899.34-1.656-.08-2.549-1.647-2.549z' }) ); } }]); return FoursquareIcon; }(_react.Component); FoursquareIcon.defaultProps = { className: '' }; exports.default = FoursquareIcon;