"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useTutorial = void 0;
const react_1 = require("react");
const useTutorial = (tutorialId) => {
    const [isVisible, setIsVisible] = (0, react_1.useState)(false);
    const localStorageId = `vuiTutorial-${tutorialId}`;
    (0, react_1.useEffect)(() => {
        setIsVisible(!window.localStorage.getItem(localStorageId));
    }, []);
    const saveDisplayed = (e) => window.localStorage.setItem(localStorageId, e);
    return { isVisible, setIsVisible, saveDisplayed };
};
exports.useTutorial = useTutorial;
//# sourceMappingURL=useTutorial.js.map