export const useIsCollectionToolbarExists = (props, { excludeSearch = false, isMobile, } = {}) => {
    const { title, tabs, views, customColumns, multiLevelSorting, search, filters, tableGridSwitchButton, exportButton, primaryActionButton, secondaryActions, moreActions, state, } = props;
    const hasExplicitFeatures = !!((!isMobile && title) ||
        tabs ||
        views ||
        customColumns ||
        multiLevelSorting ||
        exportButton ||
        primaryActionButton ||
        secondaryActions ||
        moreActions ||
        tableGridSwitchButton ||
        filters);
    if (hasExplicitFeatures) {
        return true;
    }
    if (!excludeSearch && search !== false) {
        return true;
    }
    const hasDynamicFilters = (state.collectionDataExtension?.buildCustomFieldFilters() || []).length >
        0 || !!state.tagsCollectionState?.buildTagsFilterWrapper();
    return hasDynamicFilters;
};
//# sourceMappingURL=useIsCollectionToolbarExists.js.map