import isVisualSearchActive from './is-visual-search-active.js';
import isCategorySearchActive from './is-category-search-active.js';

/**
 * Forming object function for AJAX calls
 *
 * @param data
 * @param init
 * @return { isVisualSearch }
 */
function checkActivePage(data, init = false) {
    return {
        isVisualSearch: isVisualSearchActive(data, init),
        isCategory: isCategorySearchActive(data)
    }
}

export default checkActivePage;