Files
discord-decomp/modules/video_calls/native/useBottomVoiceControlsSheetWidth.tsx
T
2026-11-01 12:12:55 +02:00

11 lines
425 B
TypeScript

// Metro module 10529 (f10530).
import { BOX_MODE_ACTIONSHEET_WIDTH, BOX_MODE_THRESHOLD_WIDTH } from "./ChannelCallConstants";
import useWindowDimensions_native from "../../screen/useWindowDimensions.native";
export default function useBottomVoiceControlsSheetWidth() {
let width = useWindowDimensions_native().width;
if (width > BOX_MODE_THRESHOLD_WIDTH) {
width = BOX_MODE_ACTIONSHEET_WIDTH;
}
return width;
};