import { memo, createElement } from "react";
import { Entity } from "@contember/binding";
import { useComponentClassName, Grid } from "@contember/ui";
const DataGridContainerGrid = memo(({
  accessor,
  tileSize = 160,
  tile
}) => /* @__PURE__ */ createElement("div", {
  className: useComponentClassName("data-grid-body-content-grid")
}, /* @__PURE__ */ createElement(Grid, {
  columnWidth: tileSize
}, !!accessor.length && Array.from(accessor, (entity) => /* @__PURE__ */ createElement(Entity, {
  key: entity.id,
  accessor: entity
}, tile)))));
DataGridContainerGrid.displayName = "DataGridContainerGrid";
export { DataGridContainerGrid };
//# sourceMappingURL=DataGridContainerGrid.js.map
