decord/source/modules/instant_invite/native/InviteRolesDisplay.tsx

49 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9849
// Function ID: 9850
2026-07-20 16:05:17 +00:00
// Name: InviteRolesDisplay
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 1985, 21, 4380, 589, 4376, 1236, 9850, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 9849 (InviteRolesDisplay)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import closure_4 from "createGuildRoleRecordFromRust" /* 1985 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles({ container: { marginTop: 8 }, label: { marginBottom: 4 }, rolesRow: { flexDirection: "row", flexWrap: "wrap" } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/instant_invite/native/InviteRolesDisplay.tsx");
2026-07-20 16:05:17 +00:00
export default function InviteRolesDisplay(roleIds) {
roleIds = roleIds.roleIds;
const guildId = roleIds.guildId;
const tmp = callback3();
2026-07-29 08:29:29 +00:00
let obj = roleIds(589);
2026-08-24 06:08:38 +00:00
const items = [closure_4];
2026-07-20 16:05:17 +00:00
const items1 = [roleIds, guildId];
const stateFromStoresArray = obj.useStateFromStoresArray(items, () => {
2026-08-24 06:08:38 +00:00
const mapped = roleIds.map((arg0) => closure_1_4.getRole(closure_1, arg0));
2026-07-20 16:05:17 +00:00
return mapped.filter((arg0) => null != arg0);
}, items1);
2026-07-29 08:29:29 +00:00
let tmp4 = null;
2026-07-20 16:05:17 +00:00
if (0 !== stateFromStoresArray.length) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.container;
obj = { variant: "text-xs/semibold", color: "text-muted", style: null, children: null };
obj[2] = tmp.label;
const intl = tmp2(1236).intl;
obj[3] = intl.string(tmp2(1236).t.stcSfI);
2026-08-25 06:04:03 +00:00
const items2 = [callback(tmp2(4376).Text, obj), ];
2026-08-24 06:08:38 +00:00
obj1 = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.rolesRow;
2026-08-24 06:08:38 +00:00
obj1[1] = stateFromStoresArray.map((id) => closure_1_5(guildId(closure_1_2[8]), { role: id, guildId }, id.id));
2026-07-20 16:05:17 +00:00
items2[1] = callback(View, obj1);
2026-07-29 08:29:29 +00:00
obj[1] = items2;
tmp4 = callback2(View, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp4;
2026-07-20 16:05:17 +00:00
};