// 页面路由 Store — 管理当前显示的页面

import { create } from 'zustand';

export type PageId = 'chat' | 'admin-models' | 'admin-dashboard' | 'profile';

interface PageState {
  currentPage: PageId;
  setPage: (page: PageId) => void;
  goToChat: () => void;
}

export const usePageStore = create<PageState>((set) => ({
  currentPage: 'chat',
  setPage: (page) => set({ currentPage: page }),
  goToChat: () => set({ currentPage: 'chat' }),
}));
