decord/source/modules/parent_tools/native/FamilyCenterTopServersBottomSheet.tsx

59 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14323
// Function ID: 14324
2026-07-20 16:05:17 +00:00
// Name: GuildRow
2026-08-24 06:08:38 +00:00
// Dependencies: [5301, 21, 4668, 712, 589, 5368, 6322, 7226, 7213, 4739, 1236, 2336, 6317, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14323 (GuildRow)
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import messagesProxyDefault from "messagesProxy" /* 2336 */;
import Text from "Text" /* 4739 */;
import TableRowGroupTitle from "TableRowGroupTitle" /* 6317 */;
import ActionSheet from "ActionSheet" /* 7213 */;
import GuildIconSizesDefault from "GuildIconSizes" /* 7226 */;
import closure_3 from "freshTeenActivityWithMap" /* 5301 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function GuildRow(guildActivity) {
guildActivity = guildActivity.guildActivity;
2026-07-29 08:29:29 +00:00
let obj = guildActivity(589);
2026-08-24 06:08:38 +00:00
const items = [closure_3];
const stateFromStores = obj.useStateFromStores(items, () => closure_1_3.getGuild(guildActivity.guild_id));
2026-07-20 16:05:17 +00:00
if (null == stateFromStores) {
return null;
} else {
2026-08-24 06:08:38 +00:00
const topUserOrGuildDescription = tmp2(5368).getTopUserOrGuildDescription(guildActivity.messages_sent, guildActivity.call_count);
2026-07-29 08:29:29 +00:00
obj = { label: null, subLabel: null, icon: null };
obj[0] = stateFromStores.name;
obj[1] = topUserOrGuildDescription;
obj = { guild: null, style: null };
obj[0] = stateFromStores;
obj[1] = tmp.guildIcon;
2026-08-24 06:08:38 +00:00
obj[2] = callback(GuildIconSizesDefault, obj);
return callback(tmp2(6322).TableRow, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
tmp = callback3();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { header: { textAlign: "center" }, guildIcon: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { borderRadius: ThemesDefault.radii.md, borderColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST };
2026-07-29 08:29:29 +00:00
createCacheKey[1] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterTopServersBottomSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterTopGuildsBottomSheet(topGuildActivities) {
topGuildActivities = topGuildActivities.topGuildActivities;
2026-07-29 08:29:29 +00:00
let obj = { children: null };
2026-08-24 06:08:38 +00:00
obj = { variant: "text-md/bold", style: callback3().header, children: null };
const intl = getSystemLocale.intl;
obj[2] = intl.string(messagesProxyDefault.Lq9Set);
const items = [callback(Text.Text, obj), ];
obj = { hasIcons: true, children: topGuildActivities.map((guildActivity) => callback(closure_7, { guildActivity }, guildActivity.guild_id)) };
items[1] = callback(TableRowGroupTitle.TableRowGroup, obj);
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-24 06:08:38 +00:00
return callback2(ActionSheet.ActionSheet, obj);
2026-07-20 16:05:17 +00:00
};