import{t as e}from"./Copy.es-BV9xGXnM.js";import{Gn as t,Jn as n,Kn as r,Ln as i,Mn as a,Tt as o}from"./index-DUQaQqLX.js";var s=n(t(),1),c=r();function l({text:t}){let[n,r]=(0,s.useState)(!1);return(0,c.jsx)(o,{className:i(`h-6 w-6 p-0 opacity-0 transition-[opacity,background-color,color] group-hover/cell:opacity-100`,{"text-kumo-success opacity-100":n}),onClick:async()=>{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1500)},"aria-label":n?`Copied`:`Copy to clipboard`,variant:`ghost`,shape:`square`,children:n?(0,c.jsx)(a,{size:14,weight:`bold`}):(0,c.jsx)(e,{size:14})})}export{l as t};