diff --git a/app/components/AgentStats.tsx b/app/components/AgentStats.tsx
index 66e1cc4..e7f271d 100644
--- a/app/components/AgentStats.tsx
+++ b/app/components/AgentStats.tsx
@@ -3,6 +3,24 @@ import { AGENT_WALLET_ADDRESS, notoSansThai } from '../constants';
import { translations } from '../translations';
import type { Language } from '../types';
+type AgentStatsItemProps = {
+ currentLanguage: Language;
+ label: string;
+ value: string | number;
+};
+
+function AgentStatsItem({
+ currentLanguage,
+ label,
+ value,
+}: AgentStatsItemProps) {
+ return (
+
+ {`${label}: ${value}`}
+
+ );
+}
+
type AgentStats = {
currentLanguage: Language;
};
@@ -26,32 +44,31 @@ export default function AgentStats({ currentLanguage }: AgentStats) {
{/* TODO: update with actual data */}
- -
- {translations[currentLanguage].profile.stats.earned}: $ N/A
-
- -
- {translations[currentLanguage].profile.stats.spent}: $ N/A
-
- -
- {translations[currentLanguage].profile.stats.nfts}: N/A
-
- -
- {translations[currentLanguage].profile.stats.tokens}: N/A
-
- -
- {translations[currentLanguage].profile.stats.transactions}:{' '}
- {transactionCount}
-
+
+
+
+
+