import { HighlightCode as e } from "../../highlight/HighlightCode.js";
import { useShikiHighlighter as t } from "../../../../node_modules/react-shiki/dist/index.js";
import { useDeferredValue as n, useMemo as r } from "react";
import { jsx as i } from "react/jsx-runtime";
//#region src/atomic/molecules/markdown/components/MarkdownShikiCodeBlock.tsx
var a = "github-light", o = ({ badgeLabel: o, code: s, language: c }) => {
	let l = n(r(() => s.replace(/\s+$/, ""), [s]));
	return /* @__PURE__ */ i(e, {
		badgeLabel: o,
		copyCode: l,
		fallbackCodeText: l,
		highlighted: t(l, c, a, {
			delay: 60,
			showLineNumbers: !1
		})
	});
};
//#endregion
export { o as MarkdownShikiCodeBlock, o as default };

//# sourceMappingURL=MarkdownShikiCodeBlock.js.map