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