decord/source/design/components/Pile/native/GuildIconPile.native.tsx

44 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11648
// Function ID: 90401
2026-07-20 16:05:17 +00:00
// Name: GuildIconPile
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 33, 5513, 9869, 11649, 7909, 9870, 2]
2026-07-20 16:05:17 +00:00
// Exports: GuildIconPile
2026-07-27 11:26:19 +00:00
// Module 11648 (GuildIconPile)
2026-07-23 10:11:24 +00:00
import result from "result";
import jsxProd from "jsxProd";
let closure_3;
let closure_4;
const require = arg1;
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
const result = require("makeSizeStyle").fileFinishedImporting("design/components/Pile/native/GuildIconPile.native.tsx");
2026-07-20 16:05:17 +00:00
export const GuildIconPile = function GuildIconPile(arg0) {
let children;
let names;
let size;
let totalCount;
({ totalCount, children } = arg0);
const Children = React.Children;
({ size, names } = arg0);
const countResult = Children.count(children);
2026-07-24 07:16:23 +00:00
const tmp2 = require(5513) /* makeSizeStyle */.ImageSizes[size];
2026-07-27 11:26:19 +00:00
let obj = { "aria-label": require(11649) /* getListSummaryLabel */.getListSummaryLabel(names, totalCount), shape: require(7909) /* SolidCutout */.CutoutShape.RoundedRect, size: tmp2 };
2026-07-20 16:05:17 +00:00
let num = 3;
if (tmp2 <= 40) {
num = 2;
}
obj.gap = num;
obj.depthX = 0.25;
const items = [children, ];
let tmp4 = null != totalCount && countResult < totalCount;
if (tmp4) {
obj = { size: tmp2, borderRadius: tmp2 / 3, value: totalCount - countResult };
2026-07-25 08:10:48 +00:00
tmp4 = callback(require(9870) /* map */.PileOverflow, obj);
2026-07-20 16:05:17 +00:00
}
items[1] = tmp4;
obj.children = items;
2026-07-25 08:10:48 +00:00
return closure_4(require(9869) /* Pile */.Pile, obj);
2026-07-20 16:05:17 +00:00
};