import { useUiTranslation as e } from "../../../../i18n/useUiTranslation.js";
import { HighlightCode as t } from "../../highlight/HighlightCode.js";
import { Suspense as n, lazy as r } from "react";
import { jsx as i } from "react/jsx-runtime";
//#region src/atomic/molecules/markdown/components/LazyMarkdownCodeBlock.tsx
var a = r(async () => ({ default: (await import("./MarkdownCodeBlock.js")).MarkdownCodeBlock })), o = (e, t) => {
	let n = t?.trim();
	if (n != null && n !== "") return n;
	let r = e?.trim();
	return r != null && r !== "" ? r.toUpperCase() : "CODE";
}, s = ({ code: r, language: s, badgeLabel: c }) => {
	let { t: l } = e();
	return /* @__PURE__ */ i(n, {
		fallback: /* @__PURE__ */ i(t, {
			badgeLabel: o(s, c),
			copyCode: r,
			fallbackCodeText: r,
			placeholderText: l("markdown.code.loadingBlock")
		}),
		children: /* @__PURE__ */ i(a, {
			badgeLabel: c,
			code: r,
			language: s
		})
	});
};
//#endregion
export { s as LazyMarkdownCodeBlock, s as default };

//# sourceMappingURL=LazyMarkdownCodeBlock.js.map