44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
// Module ID: 11528
|
|
// Function ID: 11529
|
|
// Name: sum
|
|
// Dependencies: [1074, 4422, 4420, 2]
|
|
// Exports: getDrawerWidth, useDrawerWidth
|
|
|
|
// Module 11528 (sum)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 1074 */;
|
|
import useChatLayout from "useChatLayout" /* 4420 */;
|
|
import useBaseAppContainerDimensions from "useBaseAppContainerDimensions" /* 4422 */;
|
|
import useBaseAppContainerDimensionsDefault from "useBaseAppContainerDimensions" /* 4422 */;
|
|
|
|
const DM_WIDTH = ME.DM_WIDTH;
|
|
const sum = 260 + DM_WIDTH;
|
|
let c3 = sum;
|
|
let closure_4 = 300 + DM_WIDTH;
|
|
const result = set.fileFinishedImporting("modules/screen/native/drawer/useDrawerWidth.tsx");
|
|
|
|
export const DRAWER_LEFT_WIDTH_MIN = sum;
|
|
export const getDrawerWidth = function getDrawerWidth() {
|
|
const width = useBaseAppContainerDimensions.getBaseAppContainerDimensions().width;
|
|
const obj = useBaseAppContainerDimensions;
|
|
const chatLayout = 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);
|
|
}
|
|
};
|
|
export const useDrawerWidth = function useDrawerWidth() {
|
|
const width = useBaseAppContainerDimensionsDefault().width;
|
|
if (!tmp.isChatBesideChannelList) {
|
|
return width;
|
|
} else if (tmp2) {
|
|
let bound = closure_3;
|
|
} else {
|
|
const _Math = Math;
|
|
bound = Math.min(closure_4, width - 32);
|
|
}
|
|
};
|