+
+ {tp("sectionStatsLabel")}
+
+ {tp("sectionStatsTitle")}
+
+
+
+ {[
+ {
+ value: users,
+ label: tp("statsCitizens"),
+ icon: "/assets/images/icons/friends.png",
+ live: false,
+ },
+ {
+ value: rooms,
+ label: tp("statsRooms"),
+ icon: "/assets/images/icons/catalog.png",
+ live: false,
+ },
+ {
+ value: online,
+ label: tp("statsOnline"),
+ icon: "/assets/images/icons/navigation/me.png",
+ live: true,
+ },
+ {
+ value: articles?.length ?? null,
+ label: tp("statsArticles"),
+ icon: "/assets/images/icons/article.gif",
+ live: false,
+ },
+ ].map((s) => (
+
-
- {s.label}
-
-
- ))}
+
+ {s.value === null ? (
+
{te("unavailable")}
+ ) : s.live ? (
+
+ ) : (
+
+ )}
+
+
+
+ {s.label}
+
+
+ ))}
+