"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useMobileLogic = void 0;
const react_1 = require("react");
const useViewportType_1 = require("../../../../useViewportType");
const useMobileLogic = () => {
    const { isMobile } = (0, useViewportType_1.useViewportType)();
    const [isDrawerOpen, setIsDrawerOpen] = (0, react_1.useState)(false);
    const handleOpenDrawer = () => {
        if (isMobile) {
            setIsDrawerOpen(true);
        }
    };
    const handleCloseDrawer = () => {
        setIsDrawerOpen(false);
    };
    return { isDrawerOpen, handleOpenDrawer, handleCloseDrawer };
};
exports.useMobileLogic = useMobileLogic;
