type Props = { searchParams: Promise<{ error?: string }>; }; export default async function LoginPage({ searchParams }: Props) { const { error } = await searchParams; const invalid = error === "1"; const locked = error === "locked"; return (
Too many failed attempts. Wait about 15 minutes, then try again.
Invalid username or password.