"use client"; import { useActionState } from "react"; import { login, type LoginState } from "@/app/admin/auth-actions"; import { Button, Input } from "@/components/ui"; export function LoginForm() { const [state, formAction, pending] = useActionState(login, {}); return (
{state.error && (

{state.error}

)}
); }