"use client"; import { Button } from "@/components/ui/button"; import { signin } from "@/actions/auth-actions"; import { Loader2 } from "lucide-react"; import { useActionState } from "react"; import { PhoneInput } from "../ui/phone-input"; export default function LoginForm() { const [state, formAction, isPending] = useActionState(signin, { message: "", status: "", }); return (
{state.status === "error" && (

{state.message}

)}
); }