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

26 lines
805 B
TypeScript
Raw Normal View History

// Module ID: 4982
// Function ID: 4983
2026-07-20 16:05:17 +00:00
// Name: getFontScale
// Dependencies: [19, 1478, 1480, 2]
2026-07-20 16:05:17 +00:00
// Exports: getFontScale, useFontScale
// Module 4982 (getFontScale)
2026-08-24 06:08:38 +00:00
import closure_2 from "noop" /* 19 */;
import closure_3 from "getDimensionsStoreStateForEntry" /* 1478 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").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() {
appEntryKey = appEntryKey(1480).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
};