mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-17 06:26:58 +01:00
15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
import { getResolvedTheme } from '../lib/theme/themes';
|
|
import { usePreferredAppearance } from './usePreferredAppearance';
|
|
import { useSettings } from './useSettings';
|
|
|
|
export function useResolvedTheme() {
|
|
const preferredAppearance = usePreferredAppearance();
|
|
const settings = useSettings();
|
|
return getResolvedTheme(
|
|
preferredAppearance,
|
|
settings.appearance,
|
|
settings.themeLight,
|
|
settings.themeDark,
|
|
);
|
|
}
|