"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLogic = void 0;
const react_1 = require("react");
const DashboardSidebarProvider_1 = require("../../DashboardSidebarProvider");
const useLogic = () => {
    const { setIsPopupOpen, isPopupOpen } = (0, react_1.useContext)(DashboardSidebarProvider_1.DashboardSidebarContext);
    const handleClosePopover = () => {
        setIsPopupOpen(false);
    };
    return { handleClosePopover, isPopupOpen };
};
exports.useLogic = useLogic;
