'use strict';
import { jsx } from 'react/jsx-runtime';
import { ViewSheet } from '../../view/ViewSheet.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
function BodyExpandCell({
  cellContext,
  children,
  onRefreshResources,
  onViewClick
}) {
  return /* @__PURE__ */jsx(ViewSheet, {
    id: cellContext.row.item.id,
    resourceName: cellContext.tableInstance.uiResourceMeta?.resourceMeta.resourceName,
    onRefreshItems: onRefreshResources,
    onEditClick: onViewClick,
    children
  });
}
__name(BodyExpandCell, "BodyExpandCell");

export { BodyExpandCell };
