import s from"./CopyButton-7463b05c.mjs";import{_ as l,d as i,o as n,c as a,t as c,h as u,r as p,b as d,n as _}from"./entry-d195bacb.mjs";import"./index-6e2e2ed7.mjs";import"./index-c5cfdf94.mjs";const m=i({name:"ProseCode",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]}},setup(t,{expose:o}){o();const e={};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}}),f={key:0,class:"filename transition-base absolute top-1 right-1 z-0 rounded-lg py-1 pr-2 font-mono text-xs leading-none tracking-tight text-gray-400 opacity-100"};function g(t,o,e,y,h,b){const r=s;return n(),a("div",{class:_([[`highlight-${e.language}`],"prose-code group w-full text-gray-50"])},[e.filename?(n(),a("span",f,c(e.filename),1)):u("",!0),p(t.$slots,"default",{},void 0,!0),d(r,{content:e.code,class:"copy-button transition-base absolute right-1 bottom-1 scale-0 opacity-0"},null,8,["content"])],2)}var k=l(m,[["render",g],["__scopeId","data-v-b2ab7482"]]);export{k as default};
