decord/stable/source/modules/badges/native/BadgeGrid.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

22 lines
810 B
TypeScript

// Module ID: 14928
// Function ID: 14929
// Name: BadgeGrid
// Dependencies: [7428, 576, 2]
// Exports: getBadgeTileSize
// Module 14928 (BadgeGrid)
import nativeDefault from "native" /* 576 */;
import ActionSheetConstants from "ActionSheetConstants" /* 7428 */;
import size from "module_2" /* 2 */;
const ACTION_SHEET_MAX_WIDTH = ActionSheetConstants.ACTION_SHEET_MAX_WIDTH;
const PX_16 = nativeDefault.space.PX_16;
const result = size.fileFinishedImporting("modules/badges/native/BadgeGrid.tsx");
export const BADGE_GRID_COLUMNS = 3;
export const BADGE_GRID_GAP = PX_16;
export const BADGE_TILE_ICON_SIZE = 60;
export const getBadgeTileSize = function getBadgeTileSize(width) {
const bound = Math.min(width, ACTION_SHEET_MAX_WIDTH);
return (bound - 2 * nativeDefault.space.PX_16 - 2 * PX_16) / 3;
};