aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/pages/Games/Games.tsx
blob: 2f084f39576a830408e8a93706b4b260dd83c363 (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
26
27
28
29
30
31
import React from "react";
import { Helmet } from "react-helmet";

import GameEntry from "@components/GameEntry.tsx";
import { Game } from "@customTypes/Game.ts";
import BreadcrumbNav from "@components/BreadcrumbNav/BreadcrumbNav";

interface GamesProps {
  games: Game[];
}

const Games: React.FC<GamesProps> = ({ games }) => {
  return (
    <div>
      <Helmet>
        <title>LPHUB | Games</title>
      </Helmet>

      <section className="px-12 pt-8 w-full">
        <h1 className="text-3xl mb-8">Games</h1>
        <div className="flex flex-col w-full">
          {games.map((game, index) => (
            <GameEntry game={game} key={index} />
          ))}
        </div>
      </section>
    </div>
  );
};

export default Games;