import { create } from "zustand"; export type ThemeScheme = "light" | "dark" | "system"; interface AppState { themeScheme: ThemeScheme; setThemeScheme: (theme: ThemeScheme) => void; } export const useAppStore = create((set) => ({ themeScheme: "system", setThemeScheme: (theme) => set({ themeScheme: theme }), }));