import{s as e}from"./rolldown-runtime-C5c2KzVm.js";import{$P as t}from"./lucide-C4oWPzu4.js";import{r as n}from"./bundle-mjs-C4g7ASB5.js";import"./react-dom-DA2kpOcl.js";import"./dist-6tuaoKmL.js";import{i as r,r as i,t as a}from"./chunk-RLXIAIE6-jOGr-UcV.js";var o=e(t(),1),s=n(),c=({code:e,language:t,raw:n,className:c,...l})=>{let{shikiTheme:u}=(0,o.useContext)(r),d=a(),[f,p]=(0,o.useState)(n);return(0,o.useEffect)(()=>{if(!d){p(n);return}let r=d.highlight({code:e,language:t,themes:u},e=>{p(e)});r&&p(r)},[e,t,u,d,n]),(0,s.jsx)(i,{className:c,language:t,result:f,...l})};export{c as HighlightedCodeBlockBody};