import { useEffect } from 'react';
import { getBulkAssignStatus, getDisabledTooltipContent, } from './TagsBulkAssignUtils';
export function useTagsBulkAssignUtils({ state, }) {
    const { tagsBulkAssignButtonState } = state.toolbar.tagsCollectionState?.tagsBulkAssignPopoverState ?? {};
    const { hasReachedMaxSelectedItems, isDuringApplyChanges } = getBulkAssignStatus({
        state: state.toolbar,
    });
    useEffect(() => {
        if (tagsBulkAssignButtonState) {
            const tooltipContent = getDisabledTooltipContent({
                state: state.toolbar,
            });
            tagsBulkAssignButtonState.setTooltipContent(tooltipContent);
        }
    }, [hasReachedMaxSelectedItems, isDuringApplyChanges]);
}
//# sourceMappingURL=useTagsBulkAssignUtils.js.map