import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{i as n}from"./emotion-styled.browser.esm.BYv_Qzcq.js";import{c as r,l as i}from"./ErrorElement.Bn6KKjq6.js";import{t as a}from"./Check.esm.tHOxRXBO.js";import{t as o}from"./ContentCopy.esm.Ccfy7DwA.js";import{n as s}from"./Toolbar.C5O8pUCg.js";import{t as c}from"./useCopyToClipboard.C-ywP4Jl.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(i,{children:n(r,{children:n(s,{label:d,icon:t?a:o,onClick:f})})})}var d=(0,l.memo)(u);export{d as t};