Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

1.3 KB
Raw Blame
import { useEffect, useState } from 'react';

const AccountDeletedPage = () => {
  const [countdown, setCountdown] = useState(5);

  useEffect(() => {
    const interval = setInterval(() => {
      setCountdown((prev) => (prev > 0 ? prev - 1 : 0));
    }, 1000);
    return () => clearInterval(interval);
  }, []);
  
  useEffect(() => {
    if (countdown === 0) {
      window.location.href = '/logto/sign-out';
    }
  }, [countdown]);
  
  return (
    <div className="container mx-auto p-8 font-sans h-screen flex items-center justify-center">
      <div className="px-8 py-16 bg-white text-gray-900 w-full md:w-1/2 flex items-center justify-center rounded-lg font-sans font-medium flex-col">
        <h3 className="text-xl text-center">
          Your account has been deleted. We're sorry to see you go.
        </h3>

        <p className="text-center mt-4">
          If you have any feedback or need help, please reach out to us at{' '}
          <a href="mailto:[email protected]" className="text-primary-100">
            [email protected]
          </a>
          .
        </p>
        <h3 className="mt-20">Please wait while we redirect you to the login page.</h3>
        <h3 className="text-center">{countdown} seconds remaining...</h3>
      </div>
    </div>
  );
};

export default AccountDeletedPage;