"use strict";

exports.__esModule = true;
exports.useDropdownSelectFilterState = useDropdownSelectFilterState;
var _react = require("react");
var _state = require("../state");
var _react2 = require("@wix/bex-core/react");
var _providers = require("../providers");
function useDropdownSelectFilterState(params) {
  const {
    filter
  } = params;
  const container = (0, _react2.useWixPatternsContainer)();
  const toolbar = (0, _providers.useFilterToolbarState)();
  const [state] = (0, _react.useState)(() => new _state.DropdownSelectFilterState({
    container,
    toolbar,
    filter
  }));
  return state;
}
//# sourceMappingURL=useDropdownSelectFilterState.js.map