/**
 * ldesign v0.4.6
 * (c) 2023 ldesign
 * @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) {
  var div = document.createElement("div");
  var clip = new Clipboard__default["default"](div, {
    text: function text() {
      return _text;
    }
  });
  div.click();
  clip.destroy();
  div.remove();
}

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