import { jsx as n } from "react/jsx-runtime";
import { useTableHeaderContext as a, TableHeaderRowContext as d } from "./context/TableStructureContext.js";
import { useOptionalTableRenderContext as l } from "./context/TableRenderContext.js";
const i = ({ children: e }) => {
  const t = l(), o = a();
  if (!t)
    return null;
  const r = (o?.nextHeaderRowIndex() ?? 0) + 1;
  return /* @__PURE__ */ n(d.Provider, { value: { row: r }, children: e });
};
export {
  i as default
};
//# sourceMappingURL=TableHeaderRow.js.map
