Files
discord-decomp/modules/app_launcher/native/hooks/useDefaultAppLauncherWidth.tsx
T
2026-11-01 12:12:55 +02:00

9 lines
470 B
TypeScript

// Metro module 10925 (f10926).
import { ACTION_SHEET_MAX_WIDTH } from "../../../action_sheet/native/ActionSheetConstants";
import useWindowDimensions_native from "../../../screen/useWindowDimensions.native";
import { AppLauncherEntrypoint } from "../../AppLauncherTypes";
export function useDefaultAppLauncherWidth(a0) {
const width = useWindowDimensions_native().width;
return a0 !== AppLauncherEntrypoint.TEXT ? Math.min(width, ACTION_SHEET_MAX_WIDTH) : width;
}