import { Code } from "./Code.mjs";
import { jsx } from "react/jsx-runtime";
import { MarkdownRenderer as MarkdownRenderer$1 } from "react-intlayer";

//#region src/components/IDE/MarkDownRender.tsx
const MarkdownRenderer = ({ children, isDarkMode }) => /* @__PURE__ */ jsx(MarkdownRenderer$1, {
	components: {
		code: (props) => /* @__PURE__ */ jsx(Code, {
			...props,
			isDarkMode,
			language: props.className?.replace("lang-", ""),
			showHeader: false,
			className: "text-xs leading-5",
			children: props.children
		}),
		pre: (props) => props.children
	},
	children: children ?? ""
});

//#endregion
export { MarkdownRenderer };
//# sourceMappingURL=MarkDownRender.mjs.map