'use client' import { useActionState } from 'react' import { authenticate } from './actions' export default function LoginForm() { const [state, action, isPending] = useActionState(authenticate, undefined) return (
{state?.error && (
{state.error}
)}
) }