"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.NestedTableActionCell = void 0;
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _CollectionTableActionsColumn = require("../CollectionTableActionsColumn");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/NestedTable/NestedTableActionCell.tsx";
function _NestedTableActionCell(props) {
  const {
    state,
    item,
    rowNum
  } = props;
  const {
    collection
  } = state;
  const {
    actionCell
  } = state.levelDescriptor;
  if (actionCell == null) {
    return null;
  }
  return /*#__PURE__*/_react.default.createElement(_CollectionTableActionsColumn.CollectionTableActionsColumn, {
    index: rowNum,
    sticky: true,
    collection: collection,
    keyedItem: item,
    actionCell: actionCell,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 34,
      columnNumber: 5
    }
  });
}
const NestedTableActionCell = exports.NestedTableActionCell = (0, _mobxReactLite.observer)(_NestedTableActionCell);
//# sourceMappingURL=NestedTableActionCell.js.map