import{aa as c,C as a,d as r,o as n,g as l,i as p,a as u}from"./app-BYcXwl4U.js";import{c as d}from"./app-yF7sElvF.js";const m=u("i",{class:"pi pi-copy small"},null,-1),_=[m],x={__name:"CopyToClipboard",props:{text:{type:String,default:""},tooltip:{type:String,default:""}},setup(t){const o=c("$utils"),e=t,i=function(){d(e.text),o.successToast("已复制到剪切板")};return(f,h)=>{const s=a("tooltip");return r((n(),l("a",{href:"",onClick:p(i,["prevent"])},_)),[[s,t.tooltip?t.tooltip:"点击拷贝到剪切板",void 0,{bottom:!0}]])}}};export{x as _};
