()
| 15 | import GameModeComponent from './GameModeComponent'; |
| 16 | |
| 17 | export function PlayCard() { |
| 18 | const gameModeData = [ |
| 19 | { |
| 20 | icon: ( |
| 21 | <img |
| 22 | src={lightningIcon} |
| 23 | className="inline-block mt-1 h-7 w-7" |
| 24 | alt="online" |
| 25 | /> |
| 26 | ), |
| 27 | title: 'Play Online', |
| 28 | description: 'Play vs a Person of Similar Skill', |
| 29 | onClick: () => { |
| 30 | navigate('/game/random'); |
| 31 | }, |
| 32 | disabled: false, |
| 33 | }, |
| 34 | { |
| 35 | icon: ( |
| 36 | <img |
| 37 | src={computerIcon} |
| 38 | className="inline-block mt-1 h-7 w-7" |
| 39 | alt="computer" |
| 40 | /> |
| 41 | ), |
| 42 | title: 'Computer', |
| 43 | description: 'Challenge a bot from easy to master', |
| 44 | disabled: true, |
| 45 | }, |
| 46 | { |
| 47 | icon: ( |
| 48 | <img |
| 49 | src={friendIcon} |
| 50 | className="inline-block mt-1 h-7 w-7" |
| 51 | alt="friend" |
| 52 | /> |
| 53 | ), |
| 54 | title: 'Play a Friend', |
| 55 | description: 'Invite a Friend to a game of Chess', |
| 56 | disabled: true, |
| 57 | }, |
| 58 | { |
| 59 | icon: ( |
| 60 | <img |
| 61 | src={tournamentIcon} |
| 62 | className="inline-block mt-1 h-7 w-7" |
| 63 | alt="tournament" |
| 64 | /> |
| 65 | ), |
| 66 | title: 'Tournaments', |
| 67 | description: 'Join an Arena where anyone can Win', |
| 68 | disabled: true, |
| 69 | }, |
| 70 | { |
| 71 | icon: ( |
| 72 | <img |
| 73 | src={variantsIcon} |
| 74 | className="inline-block mt-1 h-7 w-7" |
nothing calls this directly
no outgoing calls
no test coverage detected