/* @flow */ 'use strict'; import React from 'react'; import ColorHash from 'color-hash'; import ScaleText from 'react-scale-text'; const SummaryTokens = (props: any): any => { if (!props.tokens || props.tokens.length < 1) return null; const bgColor = new ColorHash({lightness: 0.7}); const textColor = new ColorHash(); const tokens = props.tokens.map((t, i) => { let iconColor = { color: textColor.hex(t.name), background: bgColor.hex(t.name), borderColor: bgColor.hex(t.name) } return (

{ t.symbol }

{ t.name }
{ t.balance } { t.symbol }
) }); return (
{ tokens }
) } export default SummaryTokens;