import { login } from "@/app/login/actions"; import { AuthPageShell } from "@/components/auth/auth-page-shell"; import { ErrorToaster } from "@/components/error-toaster"; import { getFirstAdminSetupState } from "@/lib/auth/first-admin-setup"; import { LockKeyhole, LogIn, Mail } from "lucide-react"; import Link from "next/link"; import { Button, Input, Label } from "poyraz-ui/atoms"; export default async function LoginPage({ searchParams, }: { searchParams: Promise<{ [key: string]: string | string[] | undefined }>; }) { const [resolvedParams, setupState] = await Promise.all([ searchParams, getFirstAdminSetupState(), ]); const error = resolvedParams?.error; const message = resolvedParams?.message; return ( <> {error && message && } E-posta Şifre Şifremi unuttum Giriş yap } secondaryAction={null} footer={ setupState.available ? ( İlk kurulumu yapmadın mı?{" "} Admin hesabını oluştur ) : ( ) } /> > ); }