"use client"

import { useSearchParams } from "next/navigation"
import { Suspense } from "react"
import { ResetPasswordPageContent } from "@/components/auth/reset-password-page-content"

function ResetPasswordContent() {
  const searchParams = useSearchParams()
  const flowQuery = searchParams.toString()

  return <ResetPasswordPageContent flowQuery={flowQuery || undefined} />
}

export default function ResetPasswordPage() {
  return (
    <Suspense fallback={null}>
      <ResetPasswordContent />
    </Suspense>
  )
}
