import"./rolldown-runtime-BM3Ffeng.js";import{tt as e}from"./element-plus-vendor-BF9PNysW.js";import{O as t,P as n,Pt as r,et as i,ht as a,k as o}from"./vue-vendor-DMUmTARL.js";import{ct as s,lt as c}from"./index-y6crcKNt.js";import{t as l}from"./v-md-preview-CBJbIrfv.js";import{t as u}from"./ReadmeEditButton-BSnfpfKQ.js";var d={__name:`CardReadme`,props:{displayMode:{type:String,required:!0}},setup(d){let f=c(),{storageKey:p}=s();return(s,c)=>{let m=l,h=e;return r(f).globalConfig.showDocument&&r(p)&&r(f).folderConfig.readmeDisplayMode===d.displayMode&&r(f).folderConfig.readmeText?(i(),t(h,{key:0},{default:a(()=>[n(u,{class:`mb-2 flex justify-end`}),n(m,{text:r(f).folderConfig.readmeText},null,8,[`text`])]),_:1})):o(``,!0)}}};export{d as default};