2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 4550
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 39909
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getFontScale
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [31, 1451, 1453, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getFontScale, useFontScale
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 4550 (getFontScale)
|
2026-07-23 10:11:24 +00:00
|
|
|
import result from "result";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("context").fileFinishedImporting("modules/screen/native/useFontScale.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const getFontScale = function getFontScale() {
|
|
|
|
|
let str = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
str = "main";
|
|
|
|
|
}
|
|
|
|
|
return state.getState().byAppEntry[str].fontScale;
|
|
|
|
|
};
|
|
|
|
|
export const useFontScale = function useFontScale() {
|
2026-07-23 10:11:24 +00:00
|
|
|
appEntryKey = appEntryKey(1453).useAppEntryKey();
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [appEntryKey];
|
2026-07-23 10:11:24 +00:00
|
|
|
return state(React.useCallback((arg0) => arg0.byAppEntry[appEntryKey].fontScale, items));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|