import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, createVNode, unref } from 'vue';
import { GmCopy } from '../../plugins/copy/index.mjs';
import { CopyDocument } from '@element-plus/icons-vue';
import { copyIconProps } from './copyIcon.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmCopyIcon"
  },
  __name: "CopyIcon",
  props: copyIconProps,
  setup(__props) {
    const props = __props;
    const handleCopy = () => {
      GmCopy(String(props.str));
    };
    return (_ctx, _cache) => {
      const _component_gm_icon = resolveComponent("gm-icon");
      return openBlock(), createBlock(_component_gm_icon, {
        class: "gm-relative gm-top-[1px] gm-ml-[2px] gm-cursor-pointer",
        onClick: handleCopy
      }, {
        default: withCtx(() => [
          createVNode(unref(CopyDocument))
        ]),
        _: 1
        /* STABLE */
      });
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=CopyIcon.vue2.mjs.map
