import React from 'react';
import { CollectionProvider } from '@wix/bex-core/react';
import { observer } from 'mobx-react-lite';
function _SingleCollectionBulkActionToolbar(props) {
    const { state, bulkActionToolbar } = props;
    const { collection, bulk } = state;
    const { result: { total }, bulkSelect, } = collection;
    const { selectedValues, uncheckedInCurrentCollection: uncheckedValues, allSelected, } = bulkSelect;
    const { modals: { openModal, openConfirmModal }, } = bulk;
    return (React.createElement(CollectionProvider, { value: collection }, bulkActionToolbar({
        query: collection.result.originQuery,
        selectedValues,
        uncheckedValues,
        allSelected,
        total,
        openModal,
        clearSelection: collection.bulkSelect.resetToDefaults,
        openConfirmModal,
    })));
}
export const SingleCollectionBulkActionToolbar = observer(_SingleCollectionBulkActionToolbar);
//# sourceMappingURL=SingleCollectionBulkActionToolbar.js.map