import { createContext } from 'react'; export interface FontScaleConfig { facility: number; ship: number; analysis: number; area: number; } export const DEFAULT_FONT_SCALE: FontScaleConfig = { facility: 1.0, ship: 1.0, analysis: 1.0, area: 1.0 }; export const FontScaleCtx = createContext<{ fontScale: FontScaleConfig; setFontScale: (c: FontScaleConfig) => void }>({ fontScale: DEFAULT_FONT_SCALE, setFontScale: () => {}, });