import { useEffect } from "react";
export var useReposition = function (onRequestReposition) {
    useEffect(function () {
        window.addEventListener("resize", onRequestReposition);
        return function () {
            window.removeEventListener("resize", onRequestReposition);
        };
    });
};
