import{aW as i,c as f,s as r,e as s,i as c,f as p}from"./BdHKhsMk.js";const u=["id"],l=["href"],m={__name:"ProseH2",props:{id:{type:String,required:!1}},setup(n){const t=n,{headings:e}=i().public.mdc,a=f(()=>{var o;return t.id&&(typeof(e==null?void 0:e.anchorLinks)=="boolean"&&(e==null?void 0:e.anchorLinks)===!0||typeof(e==null?void 0:e.anchorLinks)=="object"&&((o=e==null?void 0:e.anchorLinks)==null?void 0:o.h2))});return(o,d)=>(s(),r("h2",{id:t.id},[t.id&&p(a)?(s(),r("a",{key:0,href:`#${t.id}`},[c(o.$slots,"default")],8,l)):c(o.$slots,"default",{key:1})],8,u))}};export{m as default};
