/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var Clipboard = require('clipboard');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var Clipboard__default = /*#__PURE__*/_interopDefaultLegacy(Clipboard);

function copyText(text) {
  const div = document.createElement("div");
  const clip = new Clipboard__default["default"](div, {
    text() {
      return text;
    }
  });
  div.click();
  clip.destroy();
  div.remove();
}

exports["default"] = copyText;
//# sourceMappingURL=clipboard.js.map
