import { useFontScale } from './use_font_scale' // Based on iOS's AX1 font scale https://developer.apple.com/design/human-interface-guidelines/typography#iOS-iPadOS-larger-accessibility-type-sizes const FONT_SCALE_BREAKPOINT_FALLBACK = 1.78 export const useAtFontScaleBreakpoint = (scaleBreakpoint?: number) => { const fontScale = useFontScale() const breakpoint = scaleBreakpoint ?? FONT_SCALE_BREAKPOINT_FALLBACK return fontScale >= breakpoint }