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

Login

{state.status === "error" && (

{state.message}

)}
Don't have an account?{" "} Sign up
); }