import { Suspense } from 'react'
import SignInPageClient from '@/app/sign-in/[[...sign-in]]/SignInPageClient'

export default async function SignInPage({
  searchParams,
}: {
  searchParams: Promise<Record<string, string | string[] | undefined>>
}) {
  const params = await searchParams
  const embedded = params.embedded === '1'

  return (
    <Suspense fallback={null}>
      <SignInPageClient embedded={embedded} />
    </Suspense>
  )
}
