Game System
{[
{ id: 'custom', label: 'Just my designs' },
{ id: 'existing', label: 'Existing system' },
{ id: 'custom-game', label: 'My custom game' },
].map((mode) => {
const active =
mode.id === 'custom'
? design.game_target === 'custom' && !design.custom_game_id
: mode.id === 'existing'
? design.game_target !== 'custom'
: Boolean(design.custom_game_id);
return (
);
})}
{design.game_target !== 'custom' && (
)}
{design.game_target === 'custom' && (
{games.length > 0 && (
)}
setNewGameName(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && handleCreateGame()}
placeholder="New game name…"
maxLength={100}
/>
Custom games group your designs — manage them in{' '}
My Games.
)}