import { jsx as r } from "react/jsx-runtime";
import { TableBody as m, TableRow as b, TableCell as f } from "../TablePrimitive.js";
import { tableSizes as s } from "../../types/TableSize.js";
import d from "../table-row/TableRow.js";
import { c as h } from "../../../../index-BtlgVD4m.js";
const g = ({
  dataSource: e,
  columns: l,
  emptyStateContent: n,
  hasColumnSeparator: i,
  size: o = "sm",
  onRowClick: c,
  expandable: t
}) => e.length === 0 ? /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(f, { colSpan: l.length + (t ? 1 : 0), className: h(s[o], "text-center py-6 "), children: n }) }) }) : /* @__PURE__ */ r(m, { children: e.map((p, a) => /* @__PURE__ */ r(
  d,
  {
    columns: l,
    hasColumnSeparator: i,
    size: o,
    onRowClick: c,
    expandable: t,
    record: p,
    rowIndex: a
  },
  `jtl-table-row-${a}`
)) });
export {
  g as default
};
//# sourceMappingURL=TableBody.js.map
