import { useState } from 'react';
import { DropdownSelectFilterState } from '../state';
import { useWixPatternsContainer } from '@wix/bex-core/react';
import { useFilterToolbarState } from '../providers';
export function useDropdownSelectFilterState(params) {
    const { filter } = params;
    const container = useWixPatternsContainer();
    const toolbar = useFilterToolbarState();
    const [state] = useState(() => new DropdownSelectFilterState({
        container,
        toolbar,
        filter,
    }));
    return state;
}
//# sourceMappingURL=useDropdownSelectFilterState.js.map