import { j as l } from "../../../_virtual/jsx-runtime.js";
import { Td as n } from "../styles.js";
function p({
  additionalRows: r,
  "data-testid": i,
  "data-trackid": a
}) {
  return /* @__PURE__ */ l.jsx("tfoot", { "data-testid": i, "data-trackid": a, children: r.map(
    (e, o) => !e.hideRow && /* @__PURE__ */ l.jsx(
      "tr",
      {
        role: "row",
        "data-disabled": e.disabled,
        "data-testid": i && `${i}_row_${o}`,
        "data-trackid": a && `${a}_row_${o}`,
        children: e.cells.map(
          (t, d) => !t.hideCell && /* @__PURE__ */ l.jsx(
            n,
            {
              textAlign: t.textAlign,
              colSpan: t.colSpan,
              role: "cell",
              children: t.content
            },
            `cell_${d}`
          )
        )
      },
      `row_${o}`
    )
  ) });
}
export {
  p as default
};
