// Metro module 14956 (f14957). import { PixelRatio } from "react-native"; import { GUILD_ITEM_SIZE } from "../GuildsBarConstants"; import { BADGE_SIZE, BADGE_PADDING } from "../../../../design/void/native"; import { CutoutShape } from "../../../../design/components/Icon/native/ClipView"; export default function computeGuildsBarCutout({ position, containerSize = GUILD_ITEM_SIZE, width = BADGE_SIZE, height = BADGE_SIZE, padding = BADGE_PADDING }) { const width2 = PixelRatio.roundToNearestPixel(width + 2 * padding); const height2 = PixelRatio.roundToNearestPixel(height + 2 * padding); const r43 = { shape: CutoutShape.RoundedRect, x: 0, y: 0, width: width2, height: height2, cornerRadius: PixelRatio.roundToNearestPixel(Math.min(width2, height2) / 2) }; if (position === "top-right") { r43.x = containerSize - width2 + padding; r43.y = -padding; } else { r43.x = containerSize - width2 + padding; r43.y = containerSize - height2 + padding; } return r43; };