import { Suspense } from 'react'
import { getUserCount } from '@/lib/users'
import LoginForm from './LoginForm'

export const dynamic = 'force-dynamic'

export default function LoginPage() {
  const isFirstRun = getUserCount() === 0
  return (
    <Suspense>
      <LoginForm isFirstRun={isFirstRun} />
    </Suspense>
  )
}
