import { Suspense } from "react";
import { LoginForm } from "./login-form";

const hasKeycloak = !!process.env.AUTH_KEYCLOAK_ISSUER;

export default function LoginPage() {
  return (
    <div className="flex min-h-screen items-center justify-center bg-gray-50 p-4">
      <Suspense fallback={<div>加载中...</div>}>
        <LoginForm hasKeycloak={hasKeycloak} />
      </Suspense>
    </div>
  );
}
