import { create } from "zustand"; import { Theme, THEMES } from "../Themes"; interface ThemeState { theme: Theme; setTheme: (themeName: keyof typeof THEMES) => void; } export const useThemeStore = create((set) => ({ theme: THEMES.defaultLight, setTheme: (themeName) => set({ theme: THEMES[themeName] }), }));