export const useAppStore = defineStore('app', () => { const activeAuthState = ref(''); const setActiveAuthState = (state: string) => { activeAuthState.value = state; }; const unsetActiveAuthState = () => { activeAuthState.value = ''; }; const isRegister = computed(() => activeAuthState.value === 'register'); const isLogin = computed(() => activeAuthState.value === 'login'); const isForgot = computed(() => activeAuthState.value === 'reset-password'); const isReset = computed(() => activeAuthState.value === 'new-password'); const isOverflowHidden = ref(false); const setOverflowHidden = (value: boolean) => { isOverflowHidden.value = value; }; const isDemoSettings = ref(false); const setDemoSettings = (value: boolean) => { isDemoSettings.value = value; }; return { activeAuthState, setActiveAuthState, unsetActiveAuthState, isRegister, isLogin, isForgot, isReset, isOverflowHidden, setOverflowHidden, isDemoSettings, setDemoSettings, }; });