Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
'use client';
'use strict';
var React = require('react');
function useMutationObserver(callback, options, target) {
const observer = React.useRef(null);
const ref = React.useRef(null);
React.useEffect(() => {
const targetElement = typeof target === "function" ? target() : target;
if (targetElement || ref.current) {
observer.current = new MutationObserver(callback);
observer.current.observe(targetElement || ref.current, options);
}
return () => {
observer.current?.disconnect();
};
}, [callback, options]);
return ref;
}
exports.useMutationObserver = useMutationObserver;
//# sourceMappingURL=use-mutation-observer.cjs.map