import { Modal } from '@mui/material'; import { twc } from 'react-twc'; import { Separator } from './Separator'; import { Paragraph } from './TextComponents'; import { Cross } from '../../Icons/generated'; export const ModalWrapper = twc.div`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 h-[85vh] bg-background-default p-4 overflow-scroll rounded-2xl border-none text-text-primary w-[95vw] max-w-[548px]`; type InfoModalProps = { isOpen: boolean; closeModal: () => void; }; export const InfoModal = ({ isOpen, closeModal }: InfoModalProps) => { return ( <>

📋 Usage Guide

There are some controls that you might not know about, so here's a short list of them.

Life counter

  • Tap on a player's + or - button to add or subtract 1 life.
  • Long press on a player's + or - button to add or subtract 10 life.

Commander damage and other counters

  • Tap on the counter to add{' '} 1 counter.
  • Long press on the counter to subtract{' '} 1 counter.

Other functionality

  • When a player is at or below 0 life, has taken 21 or more Commander Damage or has{' '} 10 or more poison counters, a button with a skull will appear on that player's card. Tapping it will dim the player's card.
  • Swiping down on a player's card will show that player's settings menu.
Visit my{' '} GitHub {' '} for more info about this web app.
); };