"use client" import type React from "react" import { useEffect, useState } from "react" // import { useIonRouter } from '@ionic/react'; const CourseComplete: React.FC = () => { const [animationPhase, setAnimationPhase] = useState(0) useEffect(() => { const timer1 = setTimeout(() => setAnimationPhase(1), 500) const timer2 = setTimeout(() => setAnimationPhase(2), 1500) const timer3 = setTimeout(() => setAnimationPhase(3), 2000) const timer4 = setTimeout(() => setAnimationPhase(4), 2500) return () => { clearTimeout(timer1) clearTimeout(timer2) clearTimeout(timer3) clearTimeout(timer4) } }, []) // const router = useIonRouter() // useEffect(() => { // const timer = setTimeout(() => { // router.push("/home", "forward") // }, 3500) // Задержка 3 секунды // return () => clearTimeout(timer) // }, [router]) return (
= 2 ? 'opacity-100' : 'opacity-0'}`}> Восстановление через движение