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

8 lines
376 B
TypeScript

// Metro module 8367 (f8368).
import { BANNER_ASPECT_RATIO } from "../../native/Constants";
import useWindowDimensions_native from "../../../screen/useWindowDimensions.native";
export default function useUserProfileBannerHeight(a0) {
const width = useWindowDimensions_native().width;
return Math.round((a0 != null ? Math.min(width, a0) : width) / BANNER_ASPECT_RATIO);
};