decord/source/design/components/Pile/native/GuildIconPile.native.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

42 lines
1.4 KiB
TypeScript

// Module ID: 12753
// Function ID: 12754
// Name: GuildIconPile
// Dependencies: [19, 21, 5669, 11139, 12754, 8943, 11140, 2]
// Exports: GuildIconPile
// Module 12753 (GuildIconPile)
import GuildIcon from "GuildIcon" /* 5669 */;
import ClipView from "ClipView" /* 8943 */;
import Pile from "Pile" /* 11139 */;
import PileOverflow from "PileOverflow" /* 11140 */;
import ListUtils from "ListUtils" /* 12754 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Pile/native/GuildIconPile.native.tsx");
export const GuildIconPile = function GuildIconPile(arg0) {
({ totalCount, children } = arg0);
const Children = noop.Children;
({ size, names } = arg0);
const countResult = Children.count(children);
const tmp4 = GuildIcon.ImageSizes[size];
const obj = { "aria-label": ListUtils.getListSummaryLabel(names, totalCount), shape: ClipView.CutoutShape.RoundedRect, size: tmp4, gap: null, depthX: 0.25, children: null };
let num = 3;
if (tmp4 <= 40) {
num = 2;
}
obj.gap = num;
const items = [children, ];
let tmp6 = null != totalCount && countResult < totalCount;
if (tmp6) {
const obj3 = { size: tmp4, borderRadius: tmp4 / 3, value: totalCount - countResult };
tmp6 = React3(PileOverflow.PileOverflow, obj3);
}
items[1] = tmp6;
obj.children = items;
return React4(Pile.Pile, obj);
};