import{r as e}from"./rolldown-runtime-CpWojdLp.js";import{n as t,r as n}from"./jsx-runtime-BrKkGzFB.js";var r=t(),i=e(n(),1);function a(){let e=(0,r.c)(3),[t,n]=(0,i.useState)(null),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=async e=>{if(!navigator?.clipboard)return console.warn(`Clipboard not supported`),!1;try{return await navigator.clipboard.writeText(e),n(e),!0}catch(e){return console.warn(`Copy failed`,e),n(null),!1}},e[0]=a):a=e[0];let o=a,s;return e[1]===t?s=e[2]:(s=[t,o],e[1]=t,e[2]=s),s}export{a as t};