const preact = require('preact'); const { stringSort } = require('./../utils'); const idSort = stringSort('id'); function CrypList({ cryps, activeCryp, avatar }) { if (!cryps) return
not ready
; const crypPanels = cryps.sort(idSort).map(cryp => (

{cryp.name}

{cryp.hp.value} HP
)); return (
{crypPanels}
); } module.exports = CrypList;