Source: helpers/utils/instant-search-utils.js

/**
 * Utils module of instant search
 * @module Utils/InstantSearchUtils
 */
import jQ from "jquery";

import Settings from "../settings";
import Utils from "../utils";

/**
 * Checks if the instant search is Full-with on mobile
 */
const isFullWidthMobile = () => {
	return (Utils.isMobile() && Settings.getSettingValue('search.suggestionMobileStyle') == 'style1');
}

/**
 * Checks of the instant search is style 2 on desktop
 */
const isStyle2 = () => {
	return !Utils.isMobile() && Settings.getSettingValue('search.suggestionStyle') === 'style2';
}

const InstantSearchUtils = {
	isFullWidthMobile: isFullWidthMobile,
	isStyle2: isStyle2
}

export default InstantSearchUtils;