UNPKG

tmemory

Version:

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

6 lines (5 loc) 278 B
import { Box } from 'ink'; import React from 'react'; export const GameLayout = ({ children, padding = 1, centered = true, }) => { return (React.createElement(Box, { flexDirection: "column", alignItems: centered ? 'center' : 'flex-start', padding: padding }, children)); };