58 lines
2.7 KiB
TypeScript
58 lines
2.7 KiB
TypeScript
// Module ID: 14901
|
|
// Function ID: 14902
|
|
// Name: GuildRow
|
|
// Dependencies: [7537, 21, 4560, 576, 504, 7593, 5605, 5584, 7198, 4556, 1114, 2396, 5687, 2]
|
|
// Exports: default
|
|
|
|
// Module 14901 (GuildRow)
|
|
import ThemesDefault from "Themes" /* 576 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1114 */;
|
|
import messagesProxyDefault from "messagesProxy" /* 2396 */;
|
|
import Text from "Text" /* 4556 */;
|
|
import GuildIconSizesDefault from "GuildIconSizes" /* 5584 */;
|
|
import TableRowGroupTitle from "TableRowGroupTitle" /* 5687 */;
|
|
import ActionSheet from "ActionSheet" /* 7198 */;
|
|
import closure_3 from "freshTeenActivityWithMap" /* 7537 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4560 */;
|
|
|
|
require = arg1;
|
|
function GuildRow(guildActivity) {
|
|
guildActivity = guildActivity.guildActivity;
|
|
let obj = guildActivity(504);
|
|
const items = [closure_3];
|
|
const stateFromStores = obj.useStateFromStores(items, () => closure_1_3.getGuild(guildActivity.guild_id));
|
|
if (null == stateFromStores) {
|
|
return null;
|
|
} else {
|
|
const topUserOrGuildDescription = tmp2(7593).getTopUserOrGuildDescription(guildActivity.messages_sent, guildActivity.call_count);
|
|
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;
|
|
obj[2] = callback(GuildIconSizesDefault, obj);
|
|
return callback(tmp2(5605).TableRow, obj);
|
|
}
|
|
tmp = callback3();
|
|
}
|
|
({ jsx: c4, jsxs: c5 } = jsxProd);
|
|
createCacheKey = { header: { textAlign: "center" }, guildIcon: null };
|
|
createCacheKey = { borderRadius: ThemesDefault.radii.md, borderColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST };
|
|
createCacheKey[1] = createCacheKey;
|
|
let closure_6 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterTopServersBottomSheet.tsx");
|
|
|
|
export default function FamilyCenterTopGuildsBottomSheet(topGuildActivities) {
|
|
topGuildActivities = topGuildActivities.topGuildActivities;
|
|
let obj = { children: null };
|
|
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);
|
|
obj[0] = items;
|
|
return callback2(ActionSheet.ActionSheet, obj);
|
|
};
|