import{d as i,aY as f,c as p,s,e as n,i as r,f as u}from"./DrjE4E2T.js";const l=["id"],d=["href"],m=i({__name:"ProseH2",props:{id:{}},setup(c){const t=c,{headings:e}=f().public.mdc,a=p(()=>{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,_)=>(n(),s("h2",{id:t.id},[t.id&&u(a)?(n(),s("a",{key:0,href:`#${t.id}`},[r(o.$slots,"default")],8,d)):r(o.$slots,"default",{key:1})],8,l))}}),b=Object.assign(m,{__name:"ProseH2"});export{b as default};
