import { useContext as c } from "../../../@rc-component/context/es/context.mjs";
import * as n from "react";
import "../../../rc-util/node_modules/react-is/index.mjs";
import f, { responseImmutable as i } from "../context/TableContext.mjs";
import C from "../hooks/useRenderTimes.mjs";
import v from "./Summary.mjs";
import d from "./SummaryContext.mjs";
function x(e) {
  process.env.NODE_ENV !== "production" && C(e);
  var s = e.children, m = e.stickyOffsets, t = e.flattenColumns, l = e.columns, a = c(f, "prefixCls"), r = t.length - 1, o = t[r], u = n.useMemo(function() {
    return {
      stickyOffsets: m,
      flattenColumns: t,
      scrollColumnIndex: o != null && o.scrollbar ? r : null,
      columns: l
    };
  }, [o, t, r, m, l]);
  return /* @__PURE__ */ n.createElement(d.Provider, {
    value: u
  }, /* @__PURE__ */ n.createElement("tfoot", {
    className: "".concat(a, "-summary")
  }, s));
}
const k = i(x);
var F = v;
export {
  F as FooterComponents,
  k as default
};
