This commit is contained in:
oneao committed 2026-04-08 21:28:52 +08:00
1 parent f28107399e
commit 7823fe2768
13 files changed
+294 -28

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { create } from "zustand";
export type ThemeScheme = "light" | "dark" | "system";
interface AppState {
themeScheme: ThemeScheme;
setThemeScheme: (theme: ThemeScheme) => void;
}
export const useAppStore = create<AppState>((set) => ({
themeScheme: "system",
setThemeScheme: (theme) => set({ themeScheme: theme }),
}));