Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
34 lines
835 B
JavaScript
34 lines
835 B
JavaScript
// Module ID: 7294
|
|
// Function ID: 7295
|
|
// Dependencies: [19, 7295]
|
|
// Exports: useClipboard
|
|
|
|
// Module 7294
|
|
import _mod7295 from "module_7295" /* 7295 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
function setString(arg0) {
|
|
closure_0 = arg0;
|
|
const Clipboard = _mod7295.Clipboard;
|
|
Clipboard.setString(arg0);
|
|
const item = set.forEach((fn) => fn(closure_0));
|
|
}
|
|
const set = new Set();
|
|
|
|
export const useClipboard = () => {
|
|
const state = noop.useState("");
|
|
[tmp2, require] = state;
|
|
const effect = noop.useEffect(() => {
|
|
const Clipboard = _mod7295.Clipboard;
|
|
const string = Clipboard.getString();
|
|
string.then(closure_1_0);
|
|
}, []);
|
|
const effect1 = noop.useEffect(() => {
|
|
set.add(require);
|
|
return () => {
|
|
set.delete(closure_1_0);
|
|
};
|
|
}, []);
|
|
const items = [tmp2, setString];
|
|
return items;
|
|
};
|