typing-game-cli
Version:
Command line game to practice your typing speed by competing against typer-robot or against your best result
20 lines • 800 B
JavaScript
import React from 'react';
import { Text, Box } from 'ink';
import { optionKeyColor } from './constants.js';
export default function Menu() {
return /*#__PURE__*/React.createElement(Box, {
flexDirection: "column"
}, /*#__PURE__*/React.createElement(Box, {
paddingY: 1,
columnGap: 1
}, /*#__PURE__*/React.createElement(Text, null, ' ', /*#__PURE__*/React.createElement(Text, {
bold: true,
color: optionKeyColor
}, "y"), ' ', "- start a new round"), /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Text, {
bold: true,
color: optionKeyColor
}, "r"), ' ', "- display results"), /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Text, {
bold: true,
color: optionKeyColor
}, "q"), ' ', "- quit")));
}