import React from 'react';
import { Navigate, useNavigate, useParams } from 'react-router-dom';
import { ArrowLeft, ExternalLink } from 'lucide-react';
import { Button } from '@/src/components/ui/button';
import { GAME_EXIT_PATH, isGameId, resolveGameHref } from './games-links';
export default function GamePlayer() {
const navigate = useNavigate();
const { gameId } = useParams<{ gameId: string }>();
if (!gameId || !isGameId(gameId)) {
return