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

42 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10828
// Function ID: 83961
2026-07-20 16:05:17 +00:00
// Name: computeTabletDrawerWidth
2026-07-25 08:10:48 +00:00
// Dependencies: [653, 3987, 3985, 2]
2026-07-20 16:05:17 +00:00
// Exports: getDrawerWidth, useDrawerWidth
2026-07-27 11:26:19 +00:00
// Module 10828 (computeTabletDrawerWidth)
2026-07-23 10:11:24 +00:00
import { DM_WIDTH } from "ME";
2026-07-20 16:05:17 +00:00
function computeTabletDrawerWidth(width, arg1) {
if (arg1) {
2026-07-23 10:11:24 +00:00
let bound = closure_3;
2026-07-20 16:05:17 +00:00
} else {
const _Math = Math;
bound = Math.min(closure_4, width - 32);
}
return bound;
}
const sum = 260 + DM_WIDTH;
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-25 08:10:48 +00:00
const width = require(3987) /* useBaseAppContainerDimensions */.getBaseAppContainerDimensions().width;
const obj = require(3987) /* useBaseAppContainerDimensions */;
const chatLayout = require(3985) /* useChatLayout */.getChatLayout();
2026-07-20 16:05:17 +00:00
let tmp3 = width;
if (chatLayout.isChatBesideChannelList) {
tmp3 = computeTabletDrawerWidth(width, tmp2);
}
return tmp3;
};
export const useDrawerWidth = function useDrawerWidth() {
2026-07-25 08:10:48 +00:00
const width = importDefault(3987)().width;
2026-07-20 16:05:17 +00:00
let tmp3 = width;
if (tmp.isChatBesideChannelList) {
tmp3 = computeTabletDrawerWidth(width, tmp2);
}
return tmp3;
};