import { useBackend } from '../backend';
import { Button, ProgressBar, Box, LabeledList } from '../components';
import { Window } from '../layouts';
export const ClawMachine = (props, context) => {
const { act, data } = useBackend(context);
const { wintick, instructions, gameStatus, winscreen } = data;
let body;
if (gameStatus === 'CLAWMACHINE_NEW') {
body = (
Pay to Play!
{instructions}
);
} else if (gameStatus === 'CLAWMACHINE_END') {
body = (
Thank you for playing!
{winscreen}
);
} else if (gameStatus === 'CLAWMACHINE_ON') {
body = (
{instructions}
);
}
return (
{body}
);
};