'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var React = require('react');
var React__default = _interopDefault(React);
var PropTypes = _interopDefault(require('prop-types'));
var __chunk_1 = require('../chunk-f817ce38.js');
var __chunk_3 = require('../chunk-6d243953.js');
require('../chunk-2b268ae7.js');

var styles = function styles(_ref) {
  var shape = _ref.shape;
  return {
    root: {
      maxWidth: '100%',
      width: '100%'
    },
    rounded: {
      borderRadius: shape.borderRadius
    }
  };
};

var Image = function Image(_ref2) {
  var src = _ref2.src,
      alt = _ref2.alt,
      classes = _ref2.classes,
      className = _ref2.className,
      rounded = _ref2.rounded,
      rest = __chunk_3.objectWithoutProperties(_ref2, ['src', 'alt', 'classes', 'className', 'rounded']);
  return React__default.createElement('img', __chunk_3._extends({
    src: src,
    alt: alt,
    className: __chunk_1.classNames(classes.root, __chunk_3.defineProperty({}, classes.rounded, rounded), className && className)
  }, rest));
};

Image.propTypes = {
  src: PropTypes.string.isRequired,
  alt: PropTypes.string.isRequired,
  classes: PropTypes.object.isRequired,
  className: PropTypes.string,
  rounded: PropTypes.bool
};

var Image$1 = __chunk_1.withNano(styles)(Image);

module.exports = Image$1;
//# sourceMappingURL=index.js.map
