import { jsxs, jsx } from "react/jsx-runtime";
import { CodeBlock } from "@choiceform/design-system";
import { memo } from "react";
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.Content, { code: codeBlock.code }),
        /* @__PURE__ */ jsx(CodeBlock.Footer, {})
      ]
    }
  );
});
export {
  MessageCode
};
//# sourceMappingURL=message-code.js.map
