"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require$$0 = require("react/jsx-runtime");
const React = require("react");
const index = require("../../../common/code-block/index.cjs");
const MessageCode = React.memo(function MessageCode2(props) {
  const { code, filename, language } = props;
  const codeBlock = { code, filename, language };
  if (!codeBlock) {
    return null;
  }
  return /* @__PURE__ */ require$$0.jsxs(
    index.CodeBlock,
    {
      language: codeBlock.language,
      filename: codeBlock.filename,
      children: [
        /* @__PURE__ */ require$$0.jsx(index.CodeBlock.Header, {}),
        /* @__PURE__ */ require$$0.jsx(index.CodeBlock.BlockCode, { code: codeBlock.code }),
        /* @__PURE__ */ require$$0.jsx(index.CodeBlock.Footer, {})
      ]
    }
  );
});
exports.MessageCode = MessageCode;
//# sourceMappingURL=message-code.cjs.map
