import { useState } from "react"; import { Menu, X } from "lucide-react"; import { cn } from "@/lib/utils"; import "./Menu.css"; interface GameMenuProps { onExit: () => void; onSettings?: () => void; } export function GameMenu({ onExit, onSettings }: GameMenuProps) { const [isOpen, setIsOpen] = useState(false); const [showConfirmation, setShowConfirmation] = useState(false); const [isClosing, setIsClosing] = useState(false); const closeConfirmation = () => { setIsClosing(true); setTimeout(() => { setShowConfirmation(false); setIsClosing(false); }, 200); }; return (
You will not be able to return to this game after exiting.