diff --git a/client/src/services/SettingsStore.ts b/client/src/services/SettingsStore.ts new file mode 100644 index 000000000..1724398da --- /dev/null +++ b/client/src/services/SettingsStore.ts @@ -0,0 +1,15 @@ +import { Store } from "pullstate"; + +interface SettingsInterface { + isDarkMode: boolean; +} + +export const SettingStore = new Store({ + isDarkMode: false, +}); + +export const toggleTheme = async () => { + SettingStore.update((store) => { + store.isDarkMode = !store.isDarkMode; + }); +};