import { jsx as n } from "react/jsx-runtime";
import d from "../../utils/classNames.js";
import { useOptionalTableSection as p, useTableBodyContext as m } from "./context/TableStructureContext.js";
import { useOptionalTableRenderContext as b } from "./context/TableRenderContext.js";
const R = (s) => {
  const { className: a, noHover: l, ...c } = s, e = b(), i = p(), r = m();
  if (!e || e.columns.length === 0 || i !== "body" || !r)
    return null;
  const o = r.nextRowIndex(), t = /* @__PURE__ */ n(
    "div",
    {
      ...c,
      className: d("table-row table-row-spacer", l && "table-row-no-hover", a),
      "data-index": o,
      role: "presentation",
      children: /* @__PURE__ */ n("div", { className: "table-cell table-spacer-cell", role: "presentation" })
    }
  );
  return e.renderDraft.bodyRows.push({
    rowId: `spacer-${o}`,
    rowIndex: o,
    kind: "spacer",
    render: () => t
  }), e.isRegisteringBodyRows ? null : t;
};
export {
  R as default
};
//# sourceMappingURL=TableSpacerRow.js.map
