import { useEffect, useState } from 'react';
export const useTutorial = (tutorialId) => {
    const [isVisible, setIsVisible] = useState(false);
    const localStorageId = `vuiTutorial-${tutorialId}`;
    useEffect(() => {
        setIsVisible(!window.localStorage.getItem(localStorageId));
    }, []);
    const saveDisplayed = (e) => window.localStorage.setItem(localStorageId, e);
    return { isVisible, setIsVisible, saveDisplayed };
};
//# sourceMappingURL=useTutorial.js.map