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

54 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14350
// Function ID: 14351
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterActivityTotal
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 14349, 7199, 4376, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 14350 (FamilyCenterActivityTotal)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-08-25 06:04:03 +00:00
import Text from "Text" /* 4376 */;
import getEmptyActivityFormatter from "getEmptyActivityFormatter" /* 7199 */;
import useActionsForDisplayType from "useActionsForDisplayType" /* 14349 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
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
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
createCacheKey = { container: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { display: "flex", backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGHEST, padding: 12, justifyContent: "center", alignItems: "center", borderRadius: ThemesDefault.radii.md };
const merged = Object.assign(ThemesDefault.shadows.SHADOW_LEDGE);
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_5 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterActivityTotal.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterActivityTotal(displayType) {
displayType = displayType.displayType;
2026-08-24 06:08:38 +00:00
let obj = useActionsForDisplayType;
2026-07-20 16:05:17 +00:00
const actionTotalsForDisplayType = obj.useActionTotalsForDisplayType(displayType);
2026-08-24 06:08:38 +00:00
const tmp = callback();
let num = useActionsForDisplayType.useFormattedTotalForDisplayType(displayType);
2026-07-20 16:05:17 +00:00
let str = "text-muted";
if (actionTotalsForDisplayType > 0) {
str = "text-brand";
}
2026-08-24 06:08:38 +00:00
const obj2 = useActionsForDisplayType;
const activityTypeTextConfigs = getEmptyActivityFormatter.getActivityTypeTextConfigs();
2026-07-20 16:05:17 +00:00
const value = activityTypeTextConfigs.get(displayType);
let tooltipHeaderResult;
2026-07-29 08:29:29 +00:00
if (value != null) {
2026-07-20 16:05:17 +00:00
tooltipHeaderResult = value.tooltipHeader();
}
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, children: null };
obj = { variant: "heading-xxl/medium", color: str, children: null };
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = num;
2026-08-24 06:08:38 +00:00
const items = [closure_3(Text.Text, obj), closure_3(Text.Text, { variant: "text-sm/semibold", children: tooltipHeaderResult })];
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return closure_4(View, obj);
};