decord/source/modules/screen/native/drawer/useDrawerWidth.tsx

40 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 10890
// Function ID: 10891
// Name: sum
// Dependencies: [676, 4045, 4043, 2]
2026-07-20 16:05:17 +00:00
// Exports: getDrawerWidth, useDrawerWidth
2026-07-29 08:29:29 +00:00
// Module 10890 (sum)
2026-07-23 10:11:24 +00:00
import { DM_WIDTH } from "ME";
2026-07-20 16:05:17 +00:00
const sum = 260 + DM_WIDTH;
2026-07-29 08:29:29 +00:00
let c3 = sum;
2026-07-20 16:05:17 +00:00
let closure_4 = 300 + DM_WIDTH;
2026-07-23 10:11:24 +00:00
const result = require("useChatLayout").fileFinishedImporting("modules/screen/native/drawer/useDrawerWidth.tsx");
2026-07-20 16:05:17 +00:00
export const DRAWER_LEFT_WIDTH_MIN = sum;
export const getDrawerWidth = function getDrawerWidth() {
2026-07-29 08:29:29 +00:00
const width = require(4045) /* useBaseAppContainerDimensions */.getBaseAppContainerDimensions().width;
const obj = require(4045) /* useBaseAppContainerDimensions */;
const chatLayout = require(4043) /* useChatLayout */.getChatLayout();
if (!chatLayout.isChatBesideChannelList) {
return width;
} else if (tmp2) {
let bound = closure_3;
} else {
const _Math = Math;
bound = Math.min(closure_4, width - 32);
2026-07-20 16:05:17 +00:00
}
};
export const useDrawerWidth = function useDrawerWidth() {
2026-07-29 08:29:29 +00:00
const width = importDefault(4045)().width;
if (!tmp.isChatBesideChannelList) {
return width;
} else if (tmp2) {
let bound = closure_3;
} else {
const _Math = Math;
bound = Math.min(closure_4, width - 32);
2026-07-20 16:05:17 +00:00
}
};