// Module ID: 10757 // Function ID: 10758 // Name: useChatWidth // Dependencies: [19, 4236, 4238, 10758, 10759, 2] // Exports: default, getChatWidth // Module 10757 (useChatWidth) import useChatLayout from "useChatLayout" /* 4236 */; import useChatLayoutDefault from "useChatLayout" /* 4236 */; import useBaseAppContainerDimensions from "useBaseAppContainerDimensions" /* 4238 */; import useBaseAppContainerDimensionsDefault from "useBaseAppContainerDimensions" /* 4238 */; import sum from "sum" /* 10758 */; import contextDefault from "context" /* 10759 */; import closure_3 from "noop" /* 19 */; require = arg1; const result = require("set").fileFinishedImporting("modules/chat/native/useChatWidth.tsx"); export default function useChatWidth(arg0) { let context = React.useContext(contextDefault); const width = useBaseAppContainerDimensionsDefault().width; sum; if (null == context) { if (null == arg0) { let diff = width; if (useChatLayoutDefault().isChatLockedOpen) { diff = width - tmp3; } let tmp5 = diff; } else { tmp5 = width; } context = tmp5; } return context; }; export const getChatWidth = function getChatWidth(arg0) { const obj = useChatLayout; const tmp = require; const width = useBaseAppContainerDimensions.getBaseAppContainerDimensions().width; if (null == arg0) { let diff = width; if (obj.getChatLayout().isChatLockedOpen) { diff = width - sum.getDrawerWidth(); const tmpResult = sum; } let tmp3 = diff; } else { tmp3 = width; } return tmp3; };