"use strict";

exports.__esModule = 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; };

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 _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 _react = require('react');

var _react2 = _interopRequireDefault(_react);

var IconBase = (function (_React$Component) {
    _inherits(IconBase, _React$Component);

    function IconBase() {
        _classCallCheck(this, IconBase);

        _React$Component.apply(this, arguments);
    }

    IconBase.prototype.render = function render() {
        var styles = {
            verticalAlign: "middle"
        };
        var props = {
            fill: "currentColor",
            width: this.props.size,
            height: this.props.size
        };
        return _react2["default"].createElement(
            "svg",
            _extends({}, props, this.props, {
                preserveAspectRatio: "xMidYMid meet", fit: true,
                style: _extends({}, styles, this.props.style) }),
            this.props.children
        );
    };

    return IconBase;
})(_react2["default"].Component);

;

IconBase.defaultProps = {
    size: '1em'
};

IconBase.propTypes = {
    size: _react2["default"].PropTypes.oneOfType([_react2["default"].PropTypes.string, _react2["default"].PropTypes.number]),
    style: _react2["default"].PropTypes.object
};

exports["default"] = IconBase;
module.exports = exports["default"];