import { jsxs, jsx } from "react/jsx-runtime";
import { memo } from "react";
import { CodeBlock } from "../../../common/code-block/index.js";
const MessageCode = memo(function MessageCode2(props) {
  const { code, filename, language } = props;
  const codeBlock = { code, filename, language };
  if (!codeBlock) {
    return null;
  }
  return /* @__PURE__ */ jsxs(
    CodeBlock,
    {
      language: codeBlock.language,
      filename: codeBlock.filename,
      children: [
        /* @__PURE__ */ jsx(CodeBlock.Header, {}),
        /* @__PURE__ */ jsx(CodeBlock.BlockCode, { code: codeBlock.code }),
        /* @__PURE__ */ jsx(CodeBlock.Footer, {})
      ]
    }
  );
});
export {
  MessageCode
};
//# sourceMappingURL=message-code.js.map
