nuxt-prawo-jazdy/store/themeStore.ts
NetMan ccccf038d9 ui i18n english, fix locale routes, theme toggle
minor:
- change background for category list for dark theme compatibility
- try to 'fix' video playback errors in console
2025-12-16 09:32:27 +01:00

13 lines
255 B
TypeScript

export const useThemeStore = defineStore('themeStore', {
state: () => ({
theme: '',
}),
actions: {
async set(theme: string) {
this.theme = theme;
},
},
persist: {
storage: piniaPluginPersistedstate.localStorage(),
},
});