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 (

Admin sign in

{locked ? (

Too many failed attempts. Wait about 15 minutes, then try again.

) : null} {invalid ? (

Invalid username or password.

) : null}
); }