     rows = _.map @props.data, (d) =>
       if STYLES[d.key]?.iconId
         iconCell = dom.td null,
-          dom.img {src: "https://image.eveonline.com/Type/#{STYLES[d.key].iconId}_32.png"}, null
+          dom.img {src: eveIconUrl(STYLES[d.key].iconId)}, null
       else
         iconCell = dom.td null, null
       return dom.tr {key: d.key},

      dom.td null, 'Total'
      dom.td null, Intl.NumberFormat().format(@props.total)
      dom.td null, ''
    dom.table {className: 'table'},
      dom.tbody null,
        rows
)

    label: 'Wormholes'
    color: '#0000df'

# alias styles
STYLES.HighSec = STYLES.high
STYLES.LowSec = STYLES.low
STYLES.NullSec = STYLES.null
STYLES.Wormhole = STYLES.wormhole

HP_BAR_ORDER = ['shield','armor','hull']

eveIconUrl = (id, width = 32) ->
  return "https://image.eveonline.com/Type/#{id}_#{width}.png"

StatsUI = React.createClass(
  displayName: 'CharacterStatsUI'
