This commit is contained in:
Novattz
2026-03-28 15:07:50 +01:00
parent 1571e9d87d
commit 0480d523e3
8 changed files with 225 additions and 9 deletions

View File

@@ -26,6 +26,14 @@ export interface SmokeAPISettingsDialogState {
gameTitle: string
}
export interface RatingDialogState {
visible: boolean
gameId: string
gameTitle: string
unlocker: 'creamlinux' | 'smokeapi'
steamPath: string
}
// Define the context type
export interface AppContextType {
// Game state
@@ -56,6 +64,22 @@ export interface AppContextType {
handleSmokeAPISettingsOpen: (gameId: string) => void
handleSmokeAPISettingsClose: () => void
// SmokeAPI votes dialog
smokeAPIVotesDialog: {
visible: boolean
gameId: string | null
gameTitle: string | null
}
handleSmokeAPIVotesClose: () => void
handleSmokeAPIVotesConfirm: () => void
// Rating dialog
ratingDialog: RatingDialogState
handleOpenRating: (gameId: string) => void
handleCloseRating: () => void
handleSubmitRating: (worked: boolean) => Promise<void>
reportingEnabled: boolean
// Toast notifications
showToast: (
message: string,