From a65d6d9127c3fa7f6a8ecaec5d1ffd1f47c2bc98 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Tue, 3 Sep 2024 00:08:53 +0300
Subject: refactor: port to typescript

---
 frontend/src/types/Game.tsx | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 frontend/src/types/Game.tsx

(limited to 'frontend/src/types/Game.tsx')

diff --git a/frontend/src/types/Game.tsx b/frontend/src/types/Game.tsx
new file mode 100644
index 0000000..eb435f6
--- /dev/null
+++ b/frontend/src/types/Game.tsx
@@ -0,0 +1,37 @@
+import { Map } from './Map';
+
+
+export interface Game {
+  id: number;
+  name: string;
+  image: string;
+  is_coop: boolean;
+  category_portals: GameCategoryPortals[];
+};
+
+export interface GameChapters {
+  game: Game;
+  chapters: Chapter[];
+};
+
+export interface GameMaps {
+  game: Game;
+  maps: Map[];
+};
+
+export interface Category {
+  id: number;
+  name: string;
+};
+
+interface Chapter {
+  id: number;
+  name: string;
+  image: string;
+  is_disabled: boolean;
+};
+
+export interface GameCategoryPortals {
+  category: Category;
+  portal_count: number;
+};
-- 
cgit v1.2.3

