UNPKG

tmemory

Version:

A terminal-based Memory card game built with React Ink. Features multiple grid sizes, AI opponent, and high scores.

12 lines (11 loc) 703 B
import { Box, Text } from 'ink'; import React from 'react'; import { COLORS } from "../../../constants/colors.js"; export const GameModeSelect = ({ currentMode }) => { return (React.createElement(Box, { marginY: 1, marginTop: 2 }, React.createElement(Text, { color: currentMode === 'single' ? COLORS.p1 : COLORS.dim, bold: true }, "Single Player"), React.createElement(Text, null, " / "), React.createElement(Text, { color: currentMode === 'vs-player' ? COLORS.p2 : COLORS.dim, bold: true }, "P1 vs P2"), React.createElement(Text, null, " / "), React.createElement(Text, { color: currentMode === 'vs-ai' ? COLORS.ai : COLORS.dim, bold: true }, "vs AI"))); };