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

26 lines
806 B
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 4606
// Function ID: 4607
2026-07-20 16:05:17 +00:00
// Name: getFontScale
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 1475, 1477, 2]
2026-07-20 16:05:17 +00:00
// Exports: getFontScale, useFontScale
2026-07-29 08:29:29 +00:00
// Module 4606 (getFontScale)
import noop from "noop";
import getDimensionsStoreStateForEntry from "getDimensionsStoreStateForEntry";
2026-07-23 10:11:24 +00:00
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-29 08:29:29 +00:00
appEntryKey = appEntryKey(1477).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
};