import { jsx as r } from "../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { TableCells as i } from "./TableCells.js";
import { Fragment as m } from "../../../../external/.pnpm/preact@10.28.2/node_modules/preact/dist/preact.module.js";
const b = ({
  data: s,
  columns: t,
  customCells: d,
  onRowHover: e
}) => /* @__PURE__ */ r(m, { children: s?.map((n, o) => {
  const a = e && e.bind(null, o), l = e && e.bind(null, void 0);
  return /* @__PURE__ */ r(
    "div",
    {
      role: "row",
      tabIndex: 0,
      className: "adyen-pe-data-grid__row",
      onMouseEnter: a,
      onFocus: a,
      onMouseLeave: l,
      onBlur: l,
      children: /* @__PURE__ */ r(i, { columns: t, customCells: d, item: n, rowIndex: o })
    },
    n
  );
}) });
export {
  b as TableBody
};
