/**
 * SetupEncryptionPage — carried over from the new UI for API parity, but
 * Discord Clone's Convex auth flow generates + encrypts private keys at
 * registration time (RegisterPage.tsx) and there is no separate recovery-
 * key / cross-signing setup. This page is therefore a no-op that simply
 * continues into the app. It remains exported so any linked route keeps
 * compiling; nothing currently routes here.
 */
import { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { AuthLayout } from './AuthLayout';

export function SetupEncryptionPage() {
	const navigate = useNavigate();

	useEffect(() => {
		navigate('/channels/@me', { replace: true });
	}, [navigate]);

	return (
		<AuthLayout>
			<h1 style={{ color: 'var(--text-primary, #fff)' }}>Continuing…</h1>
		</AuthLayout>
	);
}

export default SetupEncryptionPage;
