import { useDocumentOverflowLockedEffect as s } from "./document-overflow/use-document-overflow.js";
import { useIsTopLayer as l } from "./use-is-top-layer.js";
function f(r, e, c = () => [document.body]) {
  let t = l(r, "scroll-lock");
  s(t, e, (n) => {
    var o;
    return { containers: [...(o = n.containers) != null ? o : [], c] };
  });
}
export {
  f as useScrollLock
};
