import React from 'react'; import { Link } from "react-router-dom"; import { Game, GameCategoryPortals } from '../types/Game'; import "../css/Games.css" import GameCategory from './GameCategory'; interface GameEntryProps { game: Game; } const GameEntry: React.FC = ({ game }) => { const [catInfo, setCatInfo] = React.useState([]); React.useEffect(() => { setCatInfo(game.category_portals); }, [game.category_portals]); return (
{game.name}
{catInfo.map((cat, index) => { return })}
); }; export default GameEntry;