+ {(() => {
+ if (fetching) {
+ return
+ }
+ return stats.map((stat, index) => {
+ return (
+
+
+ {stat.label}
+
+ {stat.token ? (
+
+ ) : (
+
+ {!stat.error ? stat.value : '-'}
+
+ )}
+
+ )
+ })
+ })()}
)
}
+function TokenStats({ stat, theme }) {
+ const { value, token, error } = stat
+ const { decimals, icon, symbol } = token
+ return (
+ <>
+