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

25 lines
798 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 4545
2026-07-21 22:01:30 +00:00
// Function ID: 39855
2026-07-20 16:05:17 +00:00
// Name: getFontScale
// Dependencies: []
// Exports: getFontScale, useFontScale
2026-07-21 06:55:02 +00:00
// Module 4545 (getFontScale)
2026-07-20 16:05:17 +00:00
let closure_2 = importAll(dependencyMap[0]);
let closure_3 = importDefault(dependencyMap[1]);
const result = arg1(dependencyMap[3]).fileFinishedImporting("modules/screen/native/useFontScale.tsx");
export const getFontScale = function getFontScale() {
let str = arg0;
if (arg0 === undefined) {
str = "main";
}
return state.getState().byAppEntry[str].fontScale;
};
export const useFontScale = function useFontScale() {
const appEntryKey = arg1(dependencyMap[2]).useAppEntryKey();
const arg1 = appEntryKey;
const items = [appEntryKey];
return state(React.useCallback((arg0) => arg0.byAppEntry[closure_0].fontScale, items));
};