import { h } from 'preact'; import { useState, useEffect, useRef } from 'preact/hooks'; import styles from './NewGame.module.css'; import modalStyles from './PlayerSelectModal.module.css'; import { UI_CONSTANTS, WIZARD_STEPS, GAME_TYPE_OPTIONS, RACE_TO_QUICK_PICKS, RACE_TO_DEFAULT, RACE_TO_INFINITY, ERROR_MESSAGES, ARIA_LABELS, FORM_CONFIG, ERROR_STYLES } from '../utils/constants'; interface PlayerSelectModalProps { players: string[]; onSelect: (player: string) => void; onClose: () => void; } export const PlayerSelectModal = ({ players, onSelect, onClose }: PlayerSelectModalProps) => (