define(["require", "exports", "react"], function (require, exports, React) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.useConstCallback = void 0;
    /**
     * @deprecated Deprecated due to potential for misuse (see package readme).
     * Use `React.useCallback` instead.
     */
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    function useConstCallback(callback) {
        var ref = React.useRef();
        if (!ref.current) {
            ref.current = callback;
        }
        return ref.current;
    }
    exports.useConstCallback = useConstCallback;
});
//# sourceMappingURL=useConstCallback.js.map