Files
openchamber/packages/ui/src/hooks/useFontPreferences.ts
T

18 lines
438 B
TypeScript
Raw Normal View History

2025-12-07 19:32:53 +02:00
import type { MonoFontOption, UiFontOption } from '@/lib/fontOptions';
import { useUIStore } from '@/stores/useUIStore';
2025-12-07 19:32:53 +02:00
interface FontPreferences {
uiFont: UiFontOption;
monoFont: MonoFontOption;
}
export const useFontPreferences = (): FontPreferences => {
const uiFont = useUIStore(state => state.uiFont);
const monoFont = useUIStore(state => state.monoFont);
2025-12-07 19:32:53 +02:00
return {
uiFont,
monoFont,
2025-12-07 19:32:53 +02:00
};
};