2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 11670
|
|
|
|
|
// Function ID: 11671
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: useDrawerWidth
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [1074, 4500, 4498, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getDrawerWidth, useDrawerWidth
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 11670 (useDrawerWidth)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import useChatLayout from "useChatLayout" /* 4498 */;
|
|
|
|
|
import useBaseAppContainerDimensions from "useBaseAppContainerDimensions" /* 4500 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const useBaseAppContainerDimensionsDefault = useBaseAppContainerDimensions;
|
|
|
|
|
|
|
|
|
|
const DM_WIDTH = Constants.DM_WIDTH;
|
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-09-10 05:38:07 +00:00
|
|
|
const result = size.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-08-24 06:08:38 +00:00
|
|
|
const width = useBaseAppContainerDimensions.getBaseAppContainerDimensions().width;
|
|
|
|
|
const chatLayout = useChatLayout.getChatLayout();
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!chatLayout.isChatBesideChannelList) {
|
|
|
|
|
return width;
|
|
|
|
|
} else if (tmp2) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let bound = sum;
|
2026-07-29 08:29:29 +00:00
|
|
|
} 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-08-24 06:08:38 +00:00
|
|
|
const width = useBaseAppContainerDimensionsDefault().width;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!tmp.isChatBesideChannelList) {
|
|
|
|
|
return width;
|
|
|
|
|
} else if (tmp2) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let bound = sum;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
const _Math = Math;
|
|
|
|
|
bound = Math.min(closure_4, width - 32);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|