import { useContext as i } from "../../../@rc-component/context/es/context.mjs";
import "react";
import "../../../rc-util/node_modules/react-is/index.mjs";
import u from "../context/TableContext.mjs";
function v(r, e, o, n) {
  var t = r + e - 1;
  return r <= n && t >= o;
}
function d(r, e) {
  return i(u, function(o) {
    var n = v(r, e || 1, o.hoverStartRow, o.hoverEndRow);
    return [n, o.onHover];
  });
}
export {
  d as default
};
