u
This commit is contained in:
1 parent
f28107399e
commit
7823fe2768
13 files changed
+294
-28
No files matched your search
@@ -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 }),
|
||||
}));
|
||||
Reference in new issue
Block a user