34 lines
2.4 KiB
TypeScript
34 lines
2.4 KiB
TypeScript
/* Metro module 4010; source: modules/chat/native/useChatLayout.tsx; dependencies: [31, 4011, 2] */
|
|
import UseWindowSizeClassifier from '../../screen/native/useWindowSizeClassifier.tsx'; /* Metro dependency 4011 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as UseWindowSizeClassifierModule from '../../screen/native/useWindowSizeClassifier.tsx'; /* Metro dependency 4011 */
|
|
|
|
function _fun33044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4168:6, offset: 0x01026619, size: 130 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/chat/native/useChatLayout.tsx');
|
|
exports.default = useChatLayout;
|
|
exports.getChatLayout = getChatLayout;
|
|
function useChatLayout() { // fn#33045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4168:187, offset: 0x0102669b, size: 65 bytes, params: 1, frame: 14
|
|
return ReactModule.useMemo(_fun33046, [(UseWindowSizeClassifier)()]);
|
|
function _fun33046() { // fn#33046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4168:246, offset: 0x010266dc, size: 87 bytes, params: 1, frame: 15
|
|
const binding = env0_0;
|
|
const {LARGE, XLARGE} = (UseWindowSizeClassifierModule).WindowSizeClassifier;
|
|
return {isChatBesideChannelList: binding >= LARGE, isChatLockedOpen: binding >= XLARGE};
|
|
}
|
|
|
|
}
|
|
|
|
function getChatLayout() { // fn#33047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4168:395, offset: 0x01026733, size: 99 bytes, params: 1, frame: 15
|
|
let value = UseWindowSizeClassifierModule;
|
|
value = value.getWindowSizeClassifier();
|
|
const {LARGE, XLARGE} = (UseWindowSizeClassifierModule).WindowSizeClassifier;
|
|
return {isChatBesideChannelList: value >= LARGE, isChatLockedOpen: value >= XLARGE};
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun33044, 4010, [31, 4011, 2]) /* metro module 4010, dependencies: [31, 4011, 2] */;
|