"use strict";

exports.__esModule = true;
exports.useCreateNestedOptimisticActions = useCreateNestedOptimisticActions;
var _react = require("react");
var _react2 = require("@wix/bex-core/react");
var _createNestedOptimisticActions = require("../state/NestedTableState/createNestedOptimisticActions");
function useCreateNestedOptimisticActions() {
  const container = (0, _react2.useWixPatternsContainer)();
  return (0, _react.useCallback)((collection, state, params) => {
    return (0, _createNestedOptimisticActions.createNestedOptimisticActions)(container, collection, state, params);
  }, []);
}
//# sourceMappingURL=useCreateNestedOptimisticActions.js.map