11 lines
425 B
TypeScript
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;
|
|
};
|