import{j as e}from"./vendor-react-DrAK5R0M.js";import{t as i}from"./index-7eqLqzhB.js";import{az as c}from"./vendor-icons-Cu2Ube6F.js";function u({value:o,label:t,className:n=""}){const r=o==null?void 0:o.trim();return r?e.jsx("button",{type:"button",title:`Copy ${t.toLowerCase()}`,"aria-label":`Copy ${t.toLowerCase()}`,onClick:s=>{s.stopPropagation(),navigator.clipboard.writeText(r).then(()=>i({title:`${t} copied`})).catch(()=>i({title:`Could not copy ${t.toLowerCase()}`,description:"Your browser blocked clipboard access.",variant:"destructive"}))},className:`inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground ${n}`,children:e.jsx(c,{className:"h-3.5 w-3.5"})}):null}export{u as C};
