import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{i as n}from"./emotion-styled.browser.esm.C7ab1lZK.js";import{c as r,s as i}from"./ErrorElement.CD9rg9H1.js";import{t as a}from"./Check.esm.zcEyHW0S.js";import{t as o}from"./ContentCopy.esm.CIsNWqfQ.js";import{n as s}from"./Toolbar.DumIAbTb.js";import{t as c}from"./useCopyToClipboard.31Hpj0n3.js";var l=e(t(),1);function u({text:e}){let{isCopied:t,copyToClipboard:u,label:d}=c(),f=(0,l.useCallback)(()=>{u(e)},[u,e]);return n(r,{children:n(i,{children:n(s,{label:d,icon:t?a:o,onClick:f})})})}var d=(0,l.memo)(u);export{d as t};