This commit is contained in:
Tickbase
2026-04-30 21:00:09 +02:00
parent cf7fe20aa6
commit 348b1a5ed0
3 changed files with 169 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
import { createContext } from 'react'
import { Game, DlcInfo } from '@/types'
import { Game, DlcInfo, EpicGame } from '@/types'
import { ActionType } from '@/components/buttons/ActionButton'
import { DlcDialogState } from '@/hooks/useDlcManager'
@@ -49,6 +49,16 @@ export interface AppContextType {
handleDlcDialogClose: () => void
handleUpdateDlcs: (gameId: string) => Promise<void>
// Epic Games
epicGames: EpicGame[]
epicLoading: boolean
epicInstallingId: string | null
loadEpicGames: () => Promise<void>
handleEpicInstall: (game: EpicGame) => void
handleEpicUninstallScream: (game: EpicGame) => void
handleEpicUninstallKoaloader: (game: EpicGame) => void
handleEpicSettings: (game: EpicGame) => void
// Game actions
progressDialog: ProgressDialogState
handleGameAction: (gameId: string, action: ActionType) => Promise<void>