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