"use strict";

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