"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLogic = void 0;
const react_1 = require("react");
const useViewportType_1 = require("../../useViewportType");
const constants_1 = require("../constants");
const useLogic = () => {
    const { isMobile } = (0, useViewportType_1.useViewportType)();
    const isSkipShow = (0, react_1.useMemo)(() => {
        if (isMobile) {
            // Не показываем баннер нa mobile разрешениях
            return true;
        }
        return localStorage.getItem(constants_1.LOCAL_STORAGE_KEY);
    }, []);
    return { isSkipShow };
};
exports.useLogic = useLogic;
