decord/source/modules/screen/native/useFontScale.tsx

26 lines
811 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4549
2026-07-24 07:16:23 +00:00
// Function ID: 39896
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-23 10:11:24 +00:00
// Module 4549 (getFontScale)
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
};