"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("react");exports.default=r=>{let o=e.useEditorMode(),{defaultLabel:a,copyContent:u,clickedLabel:c}=r??{},[s,i]=t.useState(!1),[d,l]=t.useState(a);return t.useEffect(()=>{l(a)},[a]),{changeStateILP:()=>{l(c),i(!0),navigator.clipboard.writeText(u??"").catch(function(e){console.error("Failed to copy text: ",e)}),setTimeout(()=>{l(a),i(!1)},1e3)},defaultLabelState:d,mode:o,dataActive:s}};
