Files
ims/app/(auth)/login/page.tsx
T

23 lines
749 B
TypeScript

// app/(auth)/login/page.tsx
import { LoginForm } from '@/components/auth/login-form'
interface Props {
searchParams: Promise<{ message?: string }>
}
export default async function LoginPage({ searchParams }: Props) {
const { message } = await searchParams
return (
<main className="min-h-screen flex items-center justify-center bg-ground p-4">
{message === 'password_reset' && (
<div className="fixed top-4 left-1/2 -translate-x-1/2 bg-neutral-100 border border-divider text-ink text-sm px-4 py-2 shadow">
Password updated — sign in with your new password.
</div>
)}
<div className="bg-surface border border-divider p-8 w-full max-w-sm">
<LoginForm />
</div>
</main>
)
}