import{ph as e}from"./index-DDwwBb9e.js";async function t({text:t,successMessage:n}){try{return await navigator.clipboard.writeText(t),e.create({title:`Copied`,description:n,type:`success`,meta:{closable:!0}}),!0}catch{return e.create({title:`Failed to copy`,description:`Couldn't copy. Please try again.`,type:`error`,meta:{closable:!0}}),!1}}export{t};
//# sourceMappingURL=copy-to-clipboard-CMC1JDMT.js.map