Open rizen opened 6 months ago
The string argument is not a string to be displayed to the users, but the identifier for the render, you need to implement this in ui/index.tsx:
render(setup, {
// ... you will have a bunch of stuff here
announcements: {
foo: game => {
return (
<>
<h1>Bar</h1>
</>
);
}
},
});
I can call
game.finish()
orgame.finish(player)
but if I callgame.finish(player, 'foo')
then the app crashes with this stack trace: