import { useGameRepairMutation, useGameResetMutation, useGameStartMutation, useGameStopMutation, useGameSwitchPlayerMutation } from '@/hooks/mutations/useGameMutation' import { useAuth } from '@/hooks/useAuth' import { useGame } from '@/hooks/useGame' import { useRouter } from 'expo-router' import { FAB, List, Surface } from 'react-native-paper' export default function HistoryScreen() { const router = useRouter() const auth = useAuth() const game = useGame() const gameStartMutation = useGameStartMutation({ auth, game, }) const gameStopMutation = useGameStopMutation({ auth, game, }) const gameSwitchMutation = useGameSwitchPlayerMutation({ auth, game, }) const gameRepairMutation = useGameRepairMutation({ auth, game, }) const gameResetMutation = useGameResetMutation({ auth, game, }) return ( router.navigate('/login')} />} onPress={() => router.navigate('/login')} /> } onPress={() => gameStartMutation.mutate()} /> } onPress={() => gameStopMutation.mutate()} /> } onPress={() => gameSwitchMutation.mutate()} /> } onPress={() => gameRepairMutation.mutate()} /> } onPress={() => gameResetMutation.mutate()} /> ) }