9 lines
470 B
TypeScript
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;
|
|
}
|