import React from 'react'; function GamePoolModal({ games, onClose }) { return (

Available Game Pool

{games.length} {games.length === 1 ? 'game' : 'games'} match your filters

{games.length === 0 ? (

No games match your current filters. Try adjusting the filters or enabling more games.

) : (
{games.map((game) => { // Determine border color based on favor bias const getBorderStyle = () => { if (game.favor_bias === 1) { return 'border-green-300 dark:border-green-700 bg-green-50 dark:bg-green-900/10'; } if (game.favor_bias === -1) { return 'border-red-300 dark:border-red-700 bg-red-50 dark:bg-red-900/10'; } return 'border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700'; }; return (

{game.title}

{/* Show favor indicator */} {game.favor_bias === 1 && ( Favored )} {game.favor_bias === -1 && ( Disfavored )}

{game.pack_name}

{game.min_players}-{game.max_players} players {game.game_type && ( {game.game_type} )} {game.play_count > 0 && ( {game.play_count} plays )}
); })}
)}
); } export default GamePoolModal;