decord/source/modules/screen/native/useFontScale.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

25 lines
805 B
TypeScript

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