"use strict";

exports.__esModule = true;
exports.default = void 0;

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

var _styles = require("@mui/material/styles");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const PREFIX = 'SCRichTextEditorCodeBlock';
const classes = {
  root: `${PREFIX}-root`
};
const Root = (0, _styles.styled)('div', {
  name: PREFIX,
  slot: 'Root',
  overridesResolver: (_, styles) => styles.root
})(({
  theme
}) => ({
  [`&.${classes.root}`]: {
    backgroundColor: theme.palette.grey[200],
    padding: theme.spacing(1, 2, 1, 2)
  }
}));

const CodeBlock = props => {
  return /*#__PURE__*/_react.default.createElement(Root, {
    className: classes.root
  }, props.children);
};

var _default = CodeBlock;
exports.default = _default;