// const { connect } = require('preact-redux'); const preact = require('preact'); const { connect } = require('preact-redux'); const { errorToast, infoToast } = require('../utils'); const actions = require('./../actions'); const VERSION = process.env.npm_package_version; const Welcome = require('./welcome'); const addState = connect( function receiveState(state) { const { ws, account, tutorial, } = state; function sendInstancePractice() { ws.sendInstancePractice(); } return { promptRegister: tutorial === 99, // see events account, sendInstancePractice, }; }, ); function Play(args) { const { account, promptRegister, sendInstancePractice, } = args; const news = (

MNML is a turn-based 1v1 strategy game in an abstract setting.

Build a unique team of 3 constructs from a range of skills and specialisations.
Outplay your opponent across multiple rounds by adapting to an always shifting meta.

); const list = () => { if (promptRegister) { return (

You just won your first round of MNML.

Register below to play a real Bo5 against other players,
play a practice round against a tougher AI opponent,
customise your team & more...

glhf

) } return (
Learn MNML
Join the Community
); }; return (
); } module.exports = addState(Play);