import type { Metadata } from 'next'; import Link from 'next/link'; import { redirect } from 'next/navigation'; import { getCurrentUser } from '@/lib/auth/session'; import { safeNext } from '@/lib/auth/pending'; import { SignupForm } from './signup-form'; export const metadata: Metadata = { title: 'Create your account', robots: { index: false } }; const PERKS = ['Track your collection with live RareIndex valuations and cost basis', 'Watchlists, price targets and alerts for the assets you care about', 'Deal Radar: listings priced below fair value in your categories', 'Weekly digest, exports and a shareable collector profile']; export default async function SignupPage({ searchParams }: { searchParams: Promise> }) { const sp = await searchParams; const next = safeNext(typeof sp.next === 'string' ? sp.next : null, '/collections?welcome=1'); if (await getCurrentUser()) redirect(next); return ( <>

Create your account

Free. We will e-mail you a 6-digit code to confirm your address.

Already have an account?{' '} Sign in

); }