import{j as e,u as p}from"./fields-wnm5Jtc6.js";import"./vendor-D21mNUGX.js";import{P as t,bZ as a,I as n}from"./index-pmrLY__j.js";import{n as i}from"./Layout-CFk9FOHT.js";const c=({text:o,testId:s})=>e.jsxs("div",{className:"acpt-copy-element",children:[e.jsx("input",{"data-cy":s?"copy-element-"+s:null,className:"form-control",type:"text",readOnly:!0,value:o}),e.jsx("a",{href:"#",className:"copy-element-link",onClick:r=>{r.preventDefault(),a(o),i.success(p("Copied to clipboard"))},children:e.jsx(n,{icon:"bx:copy",width:18})})]});c.propTypes={testId:t.string,text:t.string.isRequired};export{c as C};
