"use client"

import { Suspense } from "react"
import { useSearchParams } from "next/navigation"
import { SignupPageContent } from "@/components/auth/signup-page-content"

function SignupContent() {
  const searchParams = useSearchParams()
  const returnTo = searchParams.get("returnTo") ?? "/mail/inbox"
  return <SignupPageContent returnTo={returnTo} />
}

export default function SignupPage() {
  return (
    <Suspense fallback={null}>
      <SignupContent />
    </Suspense>
  )
}
