"use strict";

exports.__esModule = true;
exports.useOperatorFilterState = useOperatorFilterState;
var _react = require("react");
var _OperatorFilterPickerState = require("../state/OperatorFilterPickerState");
var _providers = require("../providers");
/**
 * Hook to create and manage OperatorFilterPickerState
 */
function useOperatorFilterState(params) {
  const {
    filter
  } = params;
  const toolbar = (0, _providers.useFilterToolbarState)();
  const [state] = (0, _react.useState)(() => new _OperatorFilterPickerState.OperatorFilterPickerState({
    filter,
    toolbar
  }));
  return state;
}
//# sourceMappingURL=useOperatorFilterState.js.map