aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/pages/Games.tsx
blob: e0320af5b2fd639fd631c19d9eda44a8ed13d33d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from 'react';

import GameEntry from '@components/GameEntry';
import { Game } from '@customTypes/Game';
import gamesCSS from "@css/Games.module.css";

interface GamesProps {
    games: Game[];
}

const Games: React.FC<GamesProps> = ({ games }) => {
    return (
        <main>
            <section>
				<div className={gamesCSS.content}>
                    {games.map((game, index) => (
                        <GameEntry game={game} key={index} />
                    ))}
                </div>
            </section>
        </main>
    );
};

export default Games;