decord/source/modules/screen/native/drawer/useDrawerWidth.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

44 lines
1.4 KiB
TypeScript

// Module ID: 11658
// Function ID: 11659
// Name: useDrawerWidth
// Dependencies: [1074, 4499, 4497, 2]
// Exports: getDrawerWidth, useDrawerWidth
// Module 11658 (useDrawerWidth)
import Constants from "Constants" /* 1074 */;
import useChatLayout from "useChatLayout" /* 4497 */;
import useBaseAppContainerDimensions from "useBaseAppContainerDimensions" /* 4499 */;
import size from "module_2" /* 2 */;
const useBaseAppContainerDimensionsDefault = useBaseAppContainerDimensions;
const DM_WIDTH = Constants.DM_WIDTH;
const sum = 260 + DM_WIDTH;
let c3 = sum;
let closure_4 = 300 + DM_WIDTH;
const result = size.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 chatLayout = useChatLayout.getChatLayout();
if (!chatLayout.isChatBesideChannelList) {
return width;
} else if (tmp2) {
let bound = sum;
} 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 = sum;
} else {
const _Math = Math;
bound = Math.min(closure_4, width - 32);
}
};