import{aa as i,r as c,j as e,O as l,P as d,b0 as p,c as x,U as m}from"./index-Dbk1Plmn.js";import{C as h}from"./check-C3ZzJelL.js";/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],y=i("Copy",u);function b({id:t,className:o,label:r}){const[s,a]=c.useState(!1);async function n(){try{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),1400)}catch{}}return e.jsxs(l,{children:[e.jsx(d,{asChild:!0,children:e.jsxs("button",{type:"button",onClick:n,"aria-label":`Copy full ID: ${t}`,className:x("inline-flex items-center gap-1 rounded border border-transparent bg-muted/40 px-1.5 py-0.5 font-mono text-[11px] hover:bg-muted",o),children:[s?e.jsx(h,{className:"h-3 w-3 text-emerald-600","aria-hidden":"true"}):e.jsx(y,{className:"h-3 w-3 opacity-60","aria-hidden":"true"}),e.jsx("span",{children:r??p(t)})]})}),e.jsx(m,{side:"bottom",className:"max-w-[min(100vw-2rem,28rem)] font-mono text-xs break-all",children:t})]})}export{b as C};
