decord/source/modules/badges/native/BadgeGrid.tsx

23 lines
810 B
TypeScript
Raw Normal View History

// Module ID: 14708
// Function ID: 14709
// Name: BadgeGrid
// Dependencies: [7254, 576, 2]
2026-08-14 17:33:39 +00:00
// Exports: getBadgeTileSize
// Module 14708 (BadgeGrid)
import nativeDefault from "native" /* 576 */;
import ActionSheetConstants from "ActionSheetConstants" /* 7254 */;
import size from "module_2" /* 2 */;
2026-08-14 17:33:39 +00:00
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");
2026-08-14 17:33:39 +00:00
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;
2026-08-14 17:33:39 +00:00
};