1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/hooks/useUserTheme.ts
2024-08-28 16:30:02 -04:00

12 lines
351 B
TypeScript

import { useThemes } from './useThemes';
import { useUserSettings } from './useUserSettings';
export function useUserTheme() {
const { theme, dashboardTheme } = useUserSettings();
const { defaultTheme } = useThemes();
return {
theme: theme || defaultTheme?.id,
dashboardTheme: dashboardTheme || defaultTheme?.id
};
}