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