47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
// Module ID: 5912
|
|
// Function ID: 5913
|
|
// Name: useIsScreenLandscape
|
|
// Dependencies: [19, 1485, 558, 576, 1487, 2]
|
|
// Exports: getIsScreenLandscape
|
|
|
|
// Module 5912 (useIsScreenLandscape)
|
|
import react2 from "react" /* 576 */;
|
|
import AppEntryKeyContext from "AppEntryKeyContext" /* 1487 */;
|
|
import react from "react" /* 19 */;
|
|
import DimensionsStore from "DimensionsStore" /* 1485 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
|
|
let tmp3;
|
|
const obj = react2;
|
|
const cResult = obj.c(2);
|
|
const obj2 = AppEntryKeyContext;
|
|
const appEntryKey = obj2.useAppEntryKey();
|
|
if (cResult[0] !== appEntryKey) {
|
|
const fn = function n(arg0) {
|
|
return arg0.byAppEntry[appEntryKey].screenIsLandscape;
|
|
};
|
|
cResult[0] = appEntryKey;
|
|
cResult[1] = fn;
|
|
tmp3 = fn;
|
|
} else {
|
|
tmp3 = cResult[1];
|
|
}
|
|
return DimensionsStore(tmp3);
|
|
}) : (() => {
|
|
const obj = AppEntryKeyContext;
|
|
const appEntryKey = obj.useAppEntryKey();
|
|
const items = [appEntryKey];
|
|
return DimensionsStore(react.useCallback((arg0) => arg0.byAppEntry[appEntryKey].screenIsLandscape, items));
|
|
});
|
|
const result = size.fileFinishedImporting("modules/screen/useIsScreenLandscape.native.tsx");
|
|
|
|
export const getIsScreenLandscape = function getIsScreenLandscape() {
|
|
let str = arg0;
|
|
if (arg0 === undefined) {
|
|
str = "main";
|
|
}
|
|
return DimensionsStore.getState().byAppEntry[str].screenIsLandscape;
|
|
};
|
|
export const useIsScreenLandscape = tmp2;
|