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

54 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13861
// Function ID: 106195
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterActivityTotal
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 27, 33, 4131, 689, 13860, 5827, 4127, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 13861 (FamilyCenterActivityTotal)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_3;
let closure_4;
const require = arg1;
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { display: "flex", backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_SURFACE_HIGHEST, padding: 12, justifyContent: "center", alignItems: "center", borderRadius: require("_createForOfIteratorHelperLoose").radii.md };
const merged = Object.assign(require("_createForOfIteratorHelperLoose").shadows.SHADOW_LEDGE);
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
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-27 11:26:19 +00:00
let obj = require(13860) /* useActionTotalsForDisplayType */;
2026-07-20 16:05:17 +00:00
const actionTotalsForDisplayType = obj.useActionTotalsForDisplayType(displayType);
2026-07-27 11:26:19 +00:00
let obj1 = require(13860) /* useActionTotalsForDisplayType */;
2026-07-20 16:05:17 +00:00
const formattedTotalForDisplayType = obj1.useFormattedTotalForDisplayType(displayType);
let str = "text-muted";
if (actionTotalsForDisplayType > 0) {
str = "text-brand";
}
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
2026-07-25 08:10:48 +00:00
const activityTypeTextConfigs = require(5827) /* getActivityTypeTextConfigs */.getActivityTypeTextConfigs();
2026-07-20 16:05:17 +00:00
const value = activityTypeTextConfigs.get(displayType);
let tooltipHeaderResult;
if (null != value) {
tooltipHeaderResult = value.tooltipHeader();
}
obj = { style: tmp.container };
obj = { variant: "heading-xxl/medium", color: str };
let num = 0;
if (null != formattedTotalForDisplayType) {
num = formattedTotalForDisplayType;
}
obj.children = num;
2026-07-25 08:10:48 +00:00
const items = [callback(require(4127) /* Text */.Text, obj), ];
2026-07-20 16:05:17 +00:00
obj1 = { variant: "text-sm/semibold", children: tooltipHeaderResult };
2026-07-25 08:10:48 +00:00
items[1] = callback(require(4127) /* Text */.Text, obj1);
2026-07-20 16:05:17 +00:00
obj.children = items;
return closure_4(View, obj);
};