-
- {mapping.currency ?
- t("common.number", {
- value: formatValue(t, mapping, getValue(mapping.field, customData)),
- style: "currency",
- currency: mapping.currency,
- }) :
- formatValue(t, mapping, getValue(mapping.field, customData))
- }
-
- {mapping.trend && (
-
0 ? "text-emerald-300" : "text-rose-300"
- }`}
- >
- {!Number.isNaN(parseFloat(getValue(mapping.trend, customData))) ?
- Number(parseFloat(getValue(mapping.trend, customData)).toFixed(2)) :
- getValue(mapping.trend, customData)
- }%
+ switch (display) {
+ case "list":
+ return (
+
+
+ {mappings.map((mapping) => (
+
+
{mapping.label}
+
+
+ {formatValue(t, mapping, getValue(mapping.field, customData))}
+
+ {mapping.additionalField && (
+
+ {getValue(mapping.additionalField, customData)}
+
+ )}
- )}
-
+
+ ))}
- ))}
-