import LoginClient from '@/app/login/LoginClient';
import { getSafeInternalPath } from '@/lib/authNavigation';

export const metadata = {
  title: 'Create your Algebra I account | Cambridge Veritas',
  robots: { index: false, follow: false },
};

export default async function AlgebraRegisterPage({ searchParams }) {
  const params = await searchParams;
  return <LoginClient mode="register" variant="algebra" embedded redirectTo={getSafeInternalPath(params?.redirect, '/algebra-1/resources')} />;
}
