- {cur.coinType} |
- {cur.name} |
-
- {cur.color ? (
-
-
- {cur.color}
-
- ) : (
- '-'
- )}
- |
- {cur.icon ? createElement(cur.icon, { size: 30 }) : '-'} |
-
- {cur.units && (
-
- {cur.units.map(unit => (
- -
- {unit.code} ({unit.magnitude})
-
- ))}
-
- )}
- |
-
- ))}
+ {currencies.map(cur => {
+ const Icon = getIconByCoinType(cur.coinType)
+ return (
+