(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "react"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.useReposition = void 0;
    var react_1 = require("react");
    var useReposition = function (onRequestReposition) {
        (0, react_1.useEffect)(function () {
            window.addEventListener("resize", onRequestReposition);
            return function () {
                window.removeEventListener("resize", onRequestReposition);
            };
        });
    };
    exports.useReposition = useReposition;
});
