summaryrefslogtreecommitdiff
path: root/frontend/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/stores')
-rw-r--r--frontend/src/stores/index.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/src/stores/index.ts b/frontend/src/stores/index.ts
index 58f461c..2fc356d 100644
--- a/frontend/src/stores/index.ts
+++ b/frontend/src/stores/index.ts
@@ -4,6 +4,10 @@ import { ChatMessage, Choice } from '../types'
// Authentication state
export const isLoggedInStore = atom<boolean>(false)
+// Navigation state
+export type NavPage = 'main' | 'templates'
+export const currentPageStore = atom<NavPage>('main')
+
// VN Interface state
export const isStandbyStore = atom<boolean>(false)
export const currentTimeStore = atom<Date>(new Date())
@@ -91,4 +95,9 @@ export const setLoadingComplete = (complete: boolean) => {
if (complete) {
loadingStore.set(false)
}
+}
+
+// Navigation actions
+export const navigateTo = (page: NavPage) => {
+ currentPageStore.set(page)
} \ No newline at end of file