1
0
Fork 0
mirror of https://github.com/CorentinTh/it-tools.git synced 2025-08-02 03:55:17 +02:00
it-tools/src/ui/theme/theme.models.ts

14 lines
299 B
TypeScript
Raw Normal View History

import { useThemeStore } from './theme.store';
export { defineThemes };
function defineThemes<Theme>(themes: { light: Theme; dark: Theme }) {
return {
themes,
useTheme() {
const themeStore = useThemeStore();
return computed(() => themes[themeStore.themeType]);
},
};
}