decord/source/modules/screen/native/useFontScale.tsx
2026-08-27 16:17:25 +00:00

25 lines
805 B
TypeScript

// Module ID: 4887
// Function ID: 4888
// Name: getFontScale
// Dependencies: [19, 1495, 1497, 2]
// Exports: getFontScale, useFontScale
// Module 4887 (getFontScale)
import closure_2 from "noop" /* 19 */;
import closure_3 from "getDimensionsStoreStateForEntry" /* 1495 */;
const require = arg1;
const result = require("set").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() {
appEntryKey = appEntryKey(1497).useAppEntryKey();
const items = [appEntryKey];
return state(React.useCallback((arg0) => arg0.byAppEntry[appEntryKey].fontScale, items));
};