"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ContentInfoBlock = ContentInfoBlock;
exports.default = void 0;

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _styles = require("@material-ui/core/styles");

var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));

var _getValue = _interopRequireDefault(require("get-value"));

var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));

var useStyles = function useStyles(props) {
  return (0, _styles.makeStyles)(function (theme) {
    return {
      root: {
        width: "100%",
        padding: theme.spacing(2),
        backgroundColor: (0, _getValue.default)(theme.palette, props.color),
        borderRadius: theme.shape.borderRadius
      }
    };
  });
};

function ContentInfoBlock(_ref) {
  var children = _ref.children,
      props = (0, _objectWithoutProperties2.default)(_ref, ["children"]);
  var classes = useStyles(props)();
  return /*#__PURE__*/_react.default.createElement(_Grid.default, {
    container: true,
    className: classes.root
  }, children);
}

var _default = ContentInfoBlock;
exports.default = _default;