react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.2 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 ToothIcon = function (_Component) {
_inherits(ToothIcon, _Component);
function ToothIcon(props) {
_classCallCheck(this, ToothIcon);
return _possibleConstructorReturn(this, (ToothIcon.__proto__ || Object.getPrototypeOf(ToothIcon)).call(this, props));
}
_createClass(ToothIcon, [{
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-tooth-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M7 2C4 2 2 5 2 8c0 2.108 1 5 2 6s2 8 4 8c4.54 0 2-7 4-7s-.54 7 4 7c2 0 3-7 4-8s2-3.892 2-6c0-3-2-6-5-6s-3 1-5 1-2-1-5-1zm0 2c2 0 3 1 5 1s3-1 5-1c1.667 0 3 2 3 4 0 1.752-.86 4.11-1.813 5.063-.855.855-2.126 6.874-2.687 6.874-.213 0-.486-1.057-.5-2.343-.022-2.042-.573-4.594-3-4.594s-2.978 2.552-3 4.594c-.014 1.286-.287 2.343-.5 2.343-.561 0-1.832-6.02-2.688-6.875C4.86 12.11 4 9.752 4 8c0-2 1.333-4 3-4z' })
);
}
}]);
return ToothIcon;
}(_react.Component);
ToothIcon.defaultProps = {
className: ''
};
exports.default = ToothIcon;