import { motion, AnimatePresence } from 'framer-motion'; import { createPortal } from 'react-dom'; import { Trophy, Star } from 'lucide-react'; export function WinnerModal({ isOpen, winner, onConfirm }) { if (!isOpen) return null; return createPortal( {/* Floating particles animation */}
{[...Array(20)].map((_, i) => ( ))}
e.stopPropagation()} > {/* Metallic border */}
{/* Glow effect */}
{/* Animated Trophy Icon */}
{/* Sparkle effect */}
{/* Title with shimmer effect */} WINNER! {/* Subtitle */} The winning number is {/* Winner Number with luxury card */} {/* Animated shimmer overlay */}
{winner !== null ? winner.toString().padStart(3, '0') : '000'}
{/* OK Button with luxury styling */} {/* Button shimmer effect */} CONTINUE
, document.body ); }