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

51 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 13926
// Function ID: 13927
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterActivityTotal
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 17, 21, 4189, 712, 13925, 5855, 4185, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 13926 (FamilyCenterActivityTotal)
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
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);
createCacheKey = { container: null };
createCacheKey = { display: "flex", backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGHEST, padding: 12, justifyContent: "center", alignItems: "center", borderRadius: require("Themes").radii.md };
const merged = Object.assign(require("Themes").shadows.SHADOW_LEDGE);
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/parent_tools/native/FamilyCenterActivityTotal.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterActivityTotal(displayType) {
displayType = displayType.displayType;
2026-07-29 08:29:29 +00:00
let obj = require(13925) /* useActionsForDisplayType */;
2026-07-20 16:05:17 +00:00
const actionTotalsForDisplayType = obj.useActionTotalsForDisplayType(displayType);
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let num = require(13925) /* useActionsForDisplayType */.useFormattedTotalForDisplayType(displayType);
2026-07-20 16:05:17 +00:00
let str = "text-muted";
if (actionTotalsForDisplayType > 0) {
str = "text-brand";
}
2026-07-29 08:29:29 +00:00
const obj2 = require(13925) /* useActionsForDisplayType */;
const activityTypeTextConfigs = require(5855) /* 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;
const items = [closure_3(require(4185) /* Text */.Text, obj), closure_3(require(4185) /* Text */.Text, { variant: "text-sm/semibold", children: tooltipHeaderResult })];
obj[1] = items;
2026-07-20 16:05:17 +00:00
return closure_4(View, obj);
};