import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; export function CompleteScreen() { const navigate = useNavigate(); const [count, setCount] = useState(5); useEffect(() => { let counter: NodeJS.Timeout; if (count > 0) { counter = setTimeout(() => setCount(count - 1), 1000); } if (count === 0) { navigate('/', { replace: true }); } return () => { clearTimeout(counter); }; }, [count]); return (
Thank you for using Lume. Lume doesn't use telemetry. If you encounter any
problems, please submit a report via the "Report Issue" button.
You can find it while using the application.