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