import Link from 'next/link' import { redirect } from 'next/navigation' import { AuthCard } from '~/features/auth/auth-card' import { getSession } from '~/server/better-auth/server' import { SignUpForm } from '../_components/sign-up-form' export default async function SignUpPage() { const session = await getSession() if (session) redirect('/') return ( Already have an account?{' '} Sign in } title="Create an account" > ) }