"use strict";

exports.__esModule = true;
exports.useAmbassadorGrid = useAmbassadorGrid;
var _react = require("react");
var _react2 = require("@wix/bex-core/react");
var _state = require("../../state");
function useAmbassadorGrid(config) {
  const createCollection = (0, _react2.useCreateAmbassadorCollection)();
  const container = (0, _react2.useWixPatternsContainer)();
  const [state] = (0, _react.useState)(() => new _state.GridState({
    collection: createCollection(config),
    container
  }));
  return state;
}
//# sourceMappingURL=useAmbassadorGrid.js.map