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

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 11859
// Function ID: 11860
2026-07-20 16:05:17 +00:00
// Name: GuildIconPile
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 21, 5646, 10156, 11860, 8075, 10157, 2]
2026-07-20 16:05:17 +00:00
// Exports: GuildIconPile
2026-08-05 07:35:12 +00:00
// Module 11859 (GuildIconPile)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
const result = require("GuildIconSizes").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-08-05 07:35:12 +00:00
const tmp4 = require(5646) /* GuildIconSizes */.ImageSizes[size];
2026-07-29 08:29:29 +00:00
let obj = { "aria-label": null, shape: null, size: null, gap: null, depthX: 0.25, children: null };
2026-08-05 07:35:12 +00:00
obj[0] = require(11860) /* getListSummaryLabel */.getListSummaryLabel(names, totalCount);
obj[1] = require(8075) /* SolidCutout */.CutoutShape.RoundedRect;
2026-07-29 08:29:29 +00:00
obj[2] = tmp4;
2026-07-20 16:05:17 +00:00
let num = 3;
2026-07-29 08:29:29 +00:00
if (tmp4 <= 40) {
2026-07-20 16:05:17 +00:00
num = 2;
}
2026-07-29 08:29:29 +00:00
obj[3] = num;
2026-07-20 16:05:17 +00:00
const items = [children, ];
2026-07-29 08:29:29 +00:00
let tmp6 = null != totalCount && countResult < totalCount;
if (tmp6) {
obj = { size: null, borderRadius: null, value: null };
obj[0] = tmp4;
obj[1] = tmp4 / 3;
obj[2] = totalCount - countResult;
2026-08-05 07:35:12 +00:00
tmp6 = callback(require(10157) /* map */.PileOverflow, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[1] = tmp6;
obj[5] = items;
2026-08-05 07:35:12 +00:00
return closure_4(require(10156) /* Pile */.Pile, obj);
2026-07-20 16:05:17 +00:00
};