import { AuthForm } from '@/components/auth/AuthForm'
import { loginAction } from '../actions'

export default async function LoginPage({
  searchParams,
}: {
  searchParams: Promise<{ next?: string }>
}) {
  const { next } = await searchParams
  return <AuthForm mode="login" action={loginAction} next={next} />
}
