"use client" import type React from "react"; import { useEffect, useState } from "react"; import { useHistory } from "react-router-dom"; import confetti from "../assets/img/Confetti.gif"; import { getRouteCourses } from "../shared/consts/router"; import { getRouteHome } from "../shared/consts/router"; const CourseComplete: React.FC = () => { const history = useHistory() const [animationPhase, setAnimationPhase] = useState(0) useEffect(() => { const timer1 = setTimeout(() => setAnimationPhase(1), 500) const timer2 = setTimeout(() => setAnimationPhase(2), 1000) const timer3 = setTimeout(() => setAnimationPhase(3), 1500) return () => { clearTimeout(timer1) clearTimeout(timer2) clearTimeout(timer3) } }, []) return (
Вы успешно завершили курс