// eslint-disable-next-line const preact = require('preact'); const { NULL_UUID } = require('./../utils'); function instanceList({ instances, setActiveInstance, sendInstanceJoin }) { if (!instances) return
...
; // const instanceJoin = ( // // ); const instancePanels = instances.map(instance => { const globalInstance = instance.instance === NULL_UUID; const name = globalInstance ? 'Global Matchmaking' : `${instance.instance.substring(0, 5)} | ${instance.score.wins} : ${instance.score.losses}`; return ( ); }); return (
{instancePanels}
); } module.exports = instanceList;